Partager via


SmsPageControl.SaveAsDefaultValue Method

Saves the specified value as a default for the XML template. This method supports the Configuration Manager infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

'Usage
Dim name As String
Dim val As String
Dim returnValue As Boolean

returnValue = Me.SaveAsDefaultValue(name, val)

Syntax

'Declaration
Protected Function SaveAsDefaultValue ( _
    name As String, _
    val As String _
) As Boolean
protected bool SaveAsDefaultValue (
    string name,
    string val
)
protected:
bool SaveAsDefaultValue (
    String^ name, 
    String^ val
)
protected boolean SaveAsDefaultValue (
    String name, 
    String val
)
protected function SaveAsDefaultValue (
    name : String, 
    val : String
) : boolean

Parameters

  • name
    [in] Name of the item that is associated with the value.
  • val
    [in] Value to save as the default.

Return Value

true if the value is saved as a default for the XML template; otherwise false.

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 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

SmsPageControl Class
SmsPageControl Members
Microsoft.ConfigurationManagement.AdminConsole Namespace