Compartilhar via


CommandParameter Constructors

Definition

Overloads

CommandParameter(String)

Create a named parameter with a null value.

CommandParameter(String, Object)

Create a named parameter.

CommandParameter(String)

Create a named parameter with a null value.

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

Parameters

name
String

Parameter name.

Exceptions

name is null.

Name length is zero after trimming whitespace.

Applies to

CommandParameter(String, Object)

Create a named parameter.

public:
 CommandParameter(System::String ^ name, System::Object ^ value);
public:
 CommandParameter(Platform::String ^ name, Platform::Object ^ value);
 CommandParameter(std::wstring const & name, winrt::Windows::Foundation::IInspectable const & value);
public CommandParameter (string name, object value);
new System.Management.Automation.Runspaces.CommandParameter : string * obj -> System.Management.Automation.Runspaces.CommandParameter
Public Sub New (name As String, value As Object)

Parameters

name
String

Parameter name.

value
Object

Parameter value.

Exceptions

Name is non null and name length is zero after trimming whitespace.

Applies to