Windows Dev Center

PSVariable Members

Represents a variable used in the Windows PowerShell language.

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

  Name Description
  PSVariable Overloaded. Initializes a new instance of the PSVariable class. The variants of this constructor can create an object that contains the name of the variable, the name and value of the variable, and more.
Top

  Name Description
public property Attributes Gets the attributes of the variable.
public property Description Gets or sets the description of the variable.
public property Module Gets information about the module that exported this variable. This property is introduced in Windows PowerShell 2.0.
public property ModuleName Gets the name of the module that exported this variable. This property is introduced in Windows PowerShell 2.0.
public property Name Gets the name of the variable.
public property Options Gets or sets the scope options of the variable.
public property Value Gets or sets the value of the variable.
public property Visibility Gets or sets whether the variable is public (visible outside the runspace where the variable is set) or private. 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 methodGetType  (Inherited from Object)
public methodIsValidValueVerifies that the specified value of the variable is valid with respect to constraints that are specified by the Attributes property.
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:
© 2015 Microsoft