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