Settings.InstanceHasDefaultValue Method

Updated: April 16, 2012

Determines whether the specified MonitoringObject instance uses the specified Setting object as a default setting value. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As Settings Dim setting As Setting(Of T) Dim instance As MonitoringObject Dim returnValue As Boolean returnValue = instance.InstanceHasDefaultValue(setting, instance)Public Function InstanceHasDefaultValue(Of T) ( _ setting As Setting(Of T), _ instance As MonitoringObject _ ) As Booleanpublic bool InstanceHasDefaultValue<T> ( Setting<T> setting, MonitoringObject instance )public: generic<typename T> bool InstanceHasDefaultValue ( Setting<T>^ setting, MonitoringObject^ instance )GenericParametersTThe type of object the setting representsParameterssettingThe setting value to check to find out if it is used as a default setting value in the Setting instance.instanceThe Setting instance to check for the setting value.Return ValueReturns Boolean.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms