Share via


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

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