Settings.InstanceHasDefaultValue<T> Method (Setting<T>, MonitoringObject)
Applies To: Operations Manager for System Center 2012
Determines whether the specified MonitoringObject instance uses the specified Setting<T> object as a default setting value.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public bool InstanceHasDefaultValue<T>(
Setting<T> setting,
MonitoringObject instance
)
public:
generic<typename T>
bool InstanceHasDefaultValue(
Setting<T>^ setting,
MonitoringObject^ instance
)
member InstanceHasDefaultValue<'T> :
setting:Setting<'T> *
instance:MonitoringObject -> bool
Public Function InstanceHasDefaultValue(Of T) (
setting As Setting(Of T),
instance As MonitoringObject
) As Boolean
Parameters
setting
Type: Microsoft.EnterpriseManagement.Administration.Setting<T>The setting value to check to find out if it is used as a default setting value in the Setting<T> instance.
instance
Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectThe Setting<T> instance to check for the setting value.
Return Value
Type: System.Boolean
Returns Boolean.
Type Parameters
- T
The type of object the setting represents
See Also
Settings Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top