共用方式為


SqlParameterCollection Class

Definition

Represents a collection of parameters associated with SqlQuerySpec for use in the Azure Cosmos DB service.

public sealed class SqlParameterCollection : System.Collections.Generic.ICollection<Microsoft.Azure.Documents.SqlParameter>, System.Collections.Generic.IEnumerable<Microsoft.Azure.Documents.SqlParameter>, System.Collections.Generic.IList<Microsoft.Azure.Documents.SqlParameter>
type SqlParameterCollection = class
    interface IList<SqlParameter>
    interface ICollection<SqlParameter>
    interface seq<SqlParameter>
    interface IEnumerable
Public NotInheritable Class SqlParameterCollection
Implements ICollection(Of SqlParameter), IEnumerable(Of SqlParameter), IList(Of SqlParameter)
Inheritance
SqlParameterCollection
Implements

Constructors

SqlParameterCollection()

Initialize a new instance of the SqlParameterCollection class for the Azure Cosmos DB service.

SqlParameterCollection(IEnumerable<SqlParameter>)

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

Properties

Count

Gets the number of elements contained in the Azure Cosmos DB collection.

IsReadOnly

Gets a value indicating whether the Azure Cosmos DB collection is read-only.

Item[Int32]

Gets or sets the element at the specified index in the Azure Cosmos DB collection.

Methods

Add(SqlParameter)

Adds an item to the Azure Cosmos DB collection.

Clear()

Removes all items from the Azure Cosmos DB collection.

Contains(SqlParameter)

Determines whether the Azure Cosmos DB collection contains a specific value.

CopyTo(SqlParameter[], Int32)

Copies the elements of the Azure Cosmos DB collection to an Array, starting at a particular Array index.

GetEnumerator()

Returns an enumerator that iterates through the Azure Cosmos DB collection.

IndexOf(SqlParameter)

Determines the index of a specific item in the Azure Cosmos DB collection.

Insert(Int32, SqlParameter)

Inserts an item at the specified index in the Azure Cosmos DB collection.

Remove(SqlParameter)

/// Removes the first occurrence of a specific object from the Azure Cosmos DB collection.

RemoveAt(Int32)

Removes the item at the specified index from the Azure Cosmos DB collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the Azure Cosmos DB collection.

Applies to