Sets the specified bool setting value to the default setting value in the specified MonitoringObject instance. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As Settings
Dim setting As Setting(Of Boolean)
Dim settingValue As Boolean

instance.SetDefaultValue(setting, settingValue)

Syntax

Visual Basic
Public Sub SetDefaultValue ( _
		setting As Setting(Of Boolean), _
		settingValue As Boolean _
)
C#
public void SetDefaultValue (
		Setting<bool> setting,
		bool settingValue
)
C++
public:
void SetDefaultValue (
		Setting<bool>^ setting, 
		bool settingValue
)
J#
public void SetDefaultValue (
		Setting<boolean> setting, 
		boolean settingValue
)
JScript
public function SetDefaultValue (
		setting : Setting<boolean>, 
		settingValue : boolean
)

Parameters

setting

The bool setting value to set to the default setting value in the MonitoringObject instance.

settingValue

The MonitoringObject instance to set the default setting value in.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also