共用方式為


Settings.SetDefaultValue Method (Setting, Boolean)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

'Usage
Dim instance As Settings
Dim setting As Setting(Of Boolean)
Dim settingValue As Boolean

instance.SetDefaultValue(setting, settingValue)

Syntax

'Declaration
Public Sub SetDefaultValue ( _
    setting As Setting(Of Boolean), _
    settingValue As Boolean _
)
public void SetDefaultValue (
    Setting<bool> setting,
    bool settingValue
)
public:
void SetDefaultValue (
    Setting<bool>^ setting, 
    bool settingValue
)
public void SetDefaultValue (
    Setting<boolean> setting, 
    boolean settingValue
)
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 Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

Settings Class
Settings Members
Microsoft.EnterpriseManagement.Administration Namespace