Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSDefaultValueAttribute Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Specifies a default value and/or help comment for a command parameter. This attribute does not have any semantic meaning; it is simply an aid to tools to make it simpler to know the actual default value of a command parameter (which may or may not have any correlation with, for example, the backing store of the parameter's property or field. Introduced in Windows PowerShell 3.0.

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


[AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class PSDefaultValueAttribute : ParsingBaseAttribute

NameDescription
System_CAPS_pubmethodPSDefaultValueAttribute()

Initializes a new instance of the PSDefaultValueAttribute class. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyHelp

Gets or sets the help string for the default value of a command parameter. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

System_CAPS_pubpropertyValue

Gets or sets the default value of a command parameter. The Windows PowerShell engine does not use this value in any way; it exists for other tools that want to reflect on cmdlets. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: