PSScriptProperty
Class
Definition
Serves as a property implemented with getter and setter scripts.
public class PSScriptProperty : System.Management.Automation.PSPropertyInfo
- Inheritance
Inherited Members
System.Management.Automation.PSMemberInfo
Remarks
It is permitted to subclass PSScriptProperty but there is no established scenario for doing this, nor has it been tested.
Constructors
| PSScriptProperty(String, ScriptBlock) |
Initializes an instance of the PSScriptProperty class as a read only property. |
| PSScriptProperty(String, ScriptBlock, ScriptBlock) |
Initializes an instance of the PSScriptProperty class as a read only property. getterScript or setterScript can be null, but not both. |
Properties
| GetterScript |
Gets the script used for the property getter. It might be null. |
| IsGettable |
Gets true if this property can be read |
| IsSettable |
Gets true if this property can be set |
| MemberType |
Gets the member type |
| SetterScript |
Gets the script used for the property setter. It might be null. |
| TypeNameOfValue |
Gets the type of the value for this member. Currently this always returns typeof(object).FullName. |
| Value |
Gets and Sets the value of this property |
Methods
| Copy() |
returns a new PSMemberInfo that is a copy of this PSMemberInfo |
| ToString() |
Returns the string representation of this property |