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.

C++
public:
 ParameterMetadata(System::Management::Automation::ParameterMetadata ^ other);

Parameters

other
ParameterMetadata

Object to copy.

Applies to

PowerShell SDK 7.4.0 et autres versions
Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

ParameterMetadata(String)

Constructs a ParameterMetadata instance.

C++
public:
 ParameterMetadata(System::String ^ name);

Parameters

name
String

Name of the parameter.

Exceptions

name is null.

Applies to

PowerShell SDK 7.4.0 et autres versions
Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

ParameterMetadata(String, Type)

Constructs a ParameterMetadata instance.

C++
public:
 ParameterMetadata(System::String ^ name, Type ^ parameterType);

Parameters

name
String

Name of the parameter.

parameterType
Type

Type of the parameter.

Exceptions

name is null.

Applies to

PowerShell SDK 7.4.0 et autres versions
Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0