Click to Rate and Give Feedback
MSDN
MSDN Library
Windows PowerShell
PSVariable Class
 PSVariable Members (System.Manageme...
Collapse All/Expand All Collapse All
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. 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
  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
(see also Protected Methods )
  Name Description
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
  Name Description
protected method Finalize  (Inherited from Object )
protected method MemberwiseClone  (Inherited from Object )
Top

Send comments about this topic to Microsoft.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker