Freigeben über


CommandParameterCollection.Add Method

Definition

Overloads

Add(String)

Add a parameter with given name and default null value.

Add(String, Object)

Add a parameter with given name and value.

Add(String)

Add a parameter with given name and default null value.

public:
 void Add(System::String ^ name);
public:
 void Add(Platform::String ^ name);
void Add(std::wstring const & name);
public void Add (string name);
override this.Add : string -> unit
Public Sub Add (name As String)

Parameters

name
String

Name of the parameter.

Exceptions

name is null.

Name length is zero after trimming whitespace.

Applies to

Add(String, Object)

Add a parameter with given name and value.

public:
 void Add(System::String ^ name, System::Object ^ value);
public:
 void Add(Platform::String ^ name, Platform::Object ^ value);
void Add(std::wstring const & name, winrt::Windows::Foundation::IInspectable const & value);
public void Add (string name, object value);
override this.Add : string * obj -> unit
Public Sub Add (name As String, value As Object)

Parameters

name
String

Name of the parameter.

value
Object

Value of the parameter.

Exceptions

Both name and value are null. One of these must be non-null.

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

Applies to