CmdletBindingAttribute.DefaultParameterSetName Property

Gets and sets the default parameter set used by the function.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in



Public Property DefaultParameterSetName As String
public string DefaultParameterSetName { get; set; }
virtual property String^ DefaultParameterSetName {
    String^ get () sealed;
    void set (String^ value) sealed;
/** @property */
public final String get_DefaultParameterSetName ()

/** @property */
public final void set_DefaultParameterSetName (String value)
public final function get DefaultParameterSetName () : String

public final function set DefaultParameterSetName (value : String)

Property Value

Returns a String that identifies the default parameter set that is used if when Windows PowerShell cannot determine the parameter set to use based on the specified parameters.

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.


Development Platforms

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

Target Platforms

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

See Also


CmdletBindingAttribute Class
CmdletBindingAttribute Members
System.Management.Automation Namespace

Other Resources

Windows PowerShell SDK