Udostępnij za pośrednictwem


ParameterMetadata.GetParameterMetadata(Type) Method

Definition

Gets a dictionary of parameter metadata for the supplied type.

public:
 static System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::ParameterMetadata ^> ^ GetParameterMetadata(Type ^ type);
public static System.Collections.Generic.Dictionary<string,System.Management.Automation.ParameterMetadata> GetParameterMetadata (Type type);
static member GetParameterMetadata : Type -> System.Collections.Generic.Dictionary<string, System.Management.Automation.ParameterMetadata>
Public Shared Function GetParameterMetadata (type As Type) As Dictionary(Of String, ParameterMetadata)

Parameters

type
Type

CLR Type for which the parameter metadata is constructed.

Returns

A Dictionary of ParameterMetadata keyed by parameter name. null if no parameter metadata is found.

Exceptions

type is null.

Applies to