Partager via


ProxyCommand.GetCmdletBindingAttribute(CommandMetadata) Method

Definition

This method constructs a string representing the CmdletBinding attribute of the command specified by commandMetadata.

public:
 static System::String ^ GetCmdletBindingAttribute(System::Management::Automation::CommandMetadata ^ commandMetadata);
public static string GetCmdletBindingAttribute (System.Management.Automation.CommandMetadata commandMetadata);
static member GetCmdletBindingAttribute : System.Management.Automation.CommandMetadata -> string
Public Shared Function GetCmdletBindingAttribute (commandMetadata As CommandMetadata) As String

Parameters

commandMetadata
CommandMetadata

An instance of CommandMetadata representing a command.

Returns

A string representing the CmdletBinding attribute of the command.

Exceptions

commandMetadata is null.

Applies to