PSScriptProperty Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serves as a property implemented with getter and setter scripts.
public ref class PSScriptProperty : System::Management::Automation::PSPropertyInfo
public class PSScriptProperty : System.Management.Automation.PSPropertyInfo
type PSScriptProperty = class
inherit PSPropertyInfo
Public Class PSScriptProperty
Inherits PSPropertyInfo
- Inheritance
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. |
IsInstance |
True if this member has been added to the instance as opposed to coming from the adapter or from type data. (Inherited from PSMemberInfo) |
IsSettable |
Gets true if this property can be set. |
MemberType |
Gets the member type. |
Name |
Gets the member name. (Inherited from PSMemberInfo) |
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. |
SetMemberName(String) |
Allows a derived class to set the member name... (Inherited from PSMemberInfo) |
ToString() |
Returns the string representation of this property. |