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
It is permitted to subclass PSScriptProperty but there is no established scenario for doing this, nor has it been tested.
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.
Gets the script used for the property getter. It might be null.
Gets true if this property can be read
True if this member has been added to the instance as opposed to coming from the adapter or from type data(Inherited from PSMemberInfo)
Gets true if this property can be set
Gets the member type
Gets the member name(Inherited from PSMemberInfo)
Gets the script used for the property setter. It might be null.
Gets the type of the value for this member. Currently this always returns typeof(object).FullName.
Gets and Sets the value of this property
returns a new PSMemberInfo that is a copy of this PSMemberInfo
Allows a derived class to set the member name...(Inherited from PSMemberInfo)
Returns the string representation of this property