AddTypeCommand.MemberDefinition Property

Gets and sets the value of the MemberDefinition parameter of the Add-Type cmdlet. This property is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Utility (in Microsoft.PowerShell.Commands.Utility.dll)

Usage

'Usage
Dim instance As AddTypeCommand
Dim value As String()

value = instance.MemberDefinition

instance.MemberDefinition = value

Syntax

'Declaration
<ParameterAttribute(Mandatory:=True, Position:=1, ParameterSetName:="FromMember")> _
Public Property MemberDefinition As String()
[ParameterAttribute(Mandatory=true, Position=1, ParameterSetName="FromMember")] 
public string[] MemberDefinition { get; set; }
[ParameterAttribute(Mandatory=true, Position=1, ParameterSetName=L"FromMember")] 
public:
property array<String^>^ MemberDefinition {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
/** @property */
public String[] get_MemberDefinition ()

/** @property */
public void set_MemberDefinition (String[] value)
public function get MemberDefinition () : String[]

public function set MemberDefinition (value : String[])

Property Value

A String array that contains the new properties or methods for the type.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see Add-Type in the Microsoft TechNet Library.

For Help at the command line, type:

get-help add-type

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

AddTypeCommand Class
AddTypeCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK