Freigeben über


ParameterMetadata Constructors

Definition

Overloads

ParameterMetadata(ParameterMetadata)

A copy constructor that creates a deep copy of the other ParameterMetadata object. Instances of Attribute and Type classes are copied by reference.

ParameterMetadata(String)

Constructs a ParameterMetadata instance.

ParameterMetadata(String, Type)

Constructs a ParameterMetadata instance.

ParameterMetadata(ParameterMetadata)

A copy constructor that creates a deep copy of the other ParameterMetadata object. Instances of Attribute and Type classes are copied by reference.

public:
 ParameterMetadata(System::Management::Automation::ParameterMetadata ^ other);
public ParameterMetadata (System.Management.Automation.ParameterMetadata other);
new System.Management.Automation.ParameterMetadata : System.Management.Automation.ParameterMetadata -> System.Management.Automation.ParameterMetadata
Public Sub New (other As ParameterMetadata)

Parameters

other
ParameterMetadata

Object to copy.

Applies to

ParameterMetadata(String)

Constructs a ParameterMetadata instance.

public:
 ParameterMetadata(System::String ^ name);
public:
 ParameterMetadata(Platform::String ^ name);
 ParameterMetadata(std::wstring const & name);
public ParameterMetadata (string name);
new System.Management.Automation.ParameterMetadata : string -> System.Management.Automation.ParameterMetadata
Public Sub New (name As String)

Parameters

name
String

Name of the parameter.

Exceptions

name is null.

Applies to

ParameterMetadata(String, Type)

Constructs a ParameterMetadata instance.

public:
 ParameterMetadata(System::String ^ name, Type ^ parameterType);
public:
 ParameterMetadata(Platform::String ^ name, Platform::Type ^ parameterType);
public ParameterMetadata (string name, Type parameterType);
new System.Management.Automation.ParameterMetadata : string * Type -> System.Management.Automation.ParameterMetadata
Public Sub New (name As String, parameterType As Type)

Parameters

name
String

Name of the parameter.

parameterType
Type

Type of the parameter.

Exceptions

name is null.

Applies to