PSDefaultValueAttribute Members

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.

The following tables list the members exposed by the PSDefaultValueAttribute type.

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

  Name Description
public property Help Gets or sets the help string for the default value of a command parameter. Introduced in Windows PowerShell 3.0.
public property TypeId  (Inherited from Attribute)
public property Value 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.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  Overridden. (Inherited from Object)
public methodGetHashCode  Overridden. (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodIsDefaultAttribute  (Inherited from Attribute)
public methodMatch  (Inherited from Attribute)
public methodToString  (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

  Name Description
  GetIDsOfNames  (Inherited from Attribute)
  GetTypeInfo  (Inherited from Attribute)
  GetTypeInfoCount  (Inherited from Attribute)
  Invoke  (Inherited from Attribute)
Top


Show: