Applies To: Operations Manager for System Center 2012
Gets the specified int setting value for the specified MonitoringObject instance.
Namespace:   Microsoft.EnterpriseManagement.Administration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public int GetInstanceValue(
    Setting<int> setting,
    MonitoringObject instance
)
public:
int GetInstanceValue(
    Setting<int>^ setting,
    MonitoringObject^ instance
)
member GetInstanceValue : 
        setting:Setting<int> *
        instance:MonitoringObject -> int
Public Function GetInstanceValue (
    setting As Setting(Of Integer),
    instance As MonitoringObject
) As Integer
Parameters
- setting 
 Type: Microsoft.EnterpriseManagement.Administration.Setting<Int32>- The int setting value to return for the MonitoringObject instance. 
- instance 
 Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringObject- The MonitoringObject instance to get the setting value for. 
Return Value
Type: System.Int32
Returns Int32 the setting value for the specified MonitoringObjectinstance.
See Also
GetInstanceValue Overload
Settings Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top