다음을 통해 공유


SqlParameter Constructors

Definition

Overloads

SqlParameter()

Initializes a new instance of the SqlParameter class for the Azure Cosmos DB service.

SqlParameter(String)

Initializes a new instance of the SqlParameter class with the name of the parameter for the Azure Cosmos DB service.

SqlParameter(String, Object)

Initializes a new instance of the SqlParameter class with the name and value of the parameter for the Azure Cosmos DB service.

SqlParameter()

Initializes a new instance of the SqlParameter class for the Azure Cosmos DB service.

public SqlParameter ();
Public Sub New ()

Applies to

SqlParameter(String)

Initializes a new instance of the SqlParameter class with the name of the parameter for the Azure Cosmos DB service.

public SqlParameter (string name);
new Microsoft.Azure.Documents.SqlParameter : string -> Microsoft.Azure.Documents.SqlParameter
Public Sub New (name As String)

Parameters

name
String

The name of the parameter.

Remarks

Names of parameters must begin with '@' and be a valid SQL identifier.

Applies to

SqlParameter(String, Object)

Initializes a new instance of the SqlParameter class with the name and value of the parameter for the Azure Cosmos DB service.

public SqlParameter (string name, object value);
new Microsoft.Azure.Documents.SqlParameter : string * obj -> Microsoft.Azure.Documents.SqlParameter
Public Sub New (name As String, value As Object)

Parameters

name
String

The name of the parameter.

value
Object

The value of the parameter.

Remarks

Names of parameters must begin with '@' and be a valid SQL identifier. The value gets serialized and passed in as JSON to the document query.

Applies to