共用方式為


CommandInfo.ResolveParameter(String) Method

Definition

Resolves a full, shortened, or aliased parameter name to the actual cmdlet parameter name, using PowerShell's standard parameter resolution algorithm.

public:
 System::Management::Automation::ParameterMetadata ^ ResolveParameter(System::String ^ name);
public System.Management.Automation.ParameterMetadata ResolveParameter (string name);
member this.ResolveParameter : string -> System.Management.Automation.ParameterMetadata
Public Function ResolveParameter (name As String) As ParameterMetadata

Parameters

name
String

The name of the parameter to resolve.

Returns

The parameter that matches this name.

Applies to