ParameterMetadata Members

Describes the metadata for cmdlet, script, and function parameters. This class is introduced in Windows PowerShell 2.0.

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

  Name Description
  ParameterMetadata Overloaded. Creates a ParameterMetadata object. The variants of this constructor can create an object that is a deep copy of a supplied object, an object with the name of the parameter, or an object with the name and .NET Framework type of the parameter. This constructor is introduced by Windows PowerShell 2.0.
Top

  Name Description
public property Aliases Gets the aliases that can be used in place of the parameter name. This property is introduced in Windows PowerShell 2.0.
public property Attributes Gets the attributes of the parameter, such as the Parameter attribute, Alias attribute, validation attributes, argument transformation attributes, or any other user defined attributes. This property is introduced in Windows PowerShell 2.0.
public property IsDynamic Gets and sets a Boolean value that indicates whether the parameter is added by Windows PowerShell at runtime. This property is introduced in Windows PowerShell 2.0.
public property Name Gets and sets the name of the parameter. This property is introduced in Windows PowerShell 2.0.
public property ParameterSets Gets information about the parameter that is specific for the parameter sets that the parameter belongs to. For example, if a parameter belongs to two parameter sets it could be mandatory for one parameter set but optional for the other. This property is introduced in Windows PowerShell 2.0.
public property ParameterType Gets and sets the .NET Framework type of the parameter. This property is introduced in Windows PowerShell 2.0.
public property SwitchParameter Gets a Boolean value that indicates whether only the parameter name is needed to specify the parameter. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodstaticGetParameterMetadataRetrieves the metadata for parameters of a specified .NET Framework type. This method is introduced in Windows PowerShell 2.0.
public methodGetType  (Inherited from Object)
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


Show: