PSVariable Members

Represents a variable used in the Windows PowerShell language.

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

Public Constructors

  Name Description
  PSVariable Overloaded. Creates a new PSVariable object. 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
Public Properties

  Name Description
public property Attributes Gets the attributes of the variable.
public property Description Gets and 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 and sets the scope options of the variable.
public property Value Gets and sets the value of the variable.
public property Visibility Gets and sets an indicator that specifies 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
Public Methods

(see also Protected Methods)
 NameDescription
public methodEquals  Overloaded. (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 methodstaticReferenceEquals  (Inherited from Object)
public methodToString  (Inherited from Object)
Top
Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
Top
See Also

Send comments about this topic to Microsoft.
Page view tracker