SqlParameterCollection SqlParameterCollection 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
SqlParameterCollectionSqlParameterCollectionSqlParameterCollection
Implements

Constructors

SqlParameterCollection() SqlParameterCollection() SqlParameterCollection()

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

SqlParameterCollection(IEnumerable<SqlParameter>) SqlParameterCollection(IEnumerable<SqlParameter>) SqlParameterCollection(IEnumerable<SqlParameter>)

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

Properties

Count Count Count

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

IsReadOnly IsReadOnly IsReadOnly

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

Item[Int32] Item[Int32] Item[Int32]

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

Methods

Add(SqlParameter) Add(SqlParameter) Add(SqlParameter)

Adds an item to the Azure Cosmos DB collection.

Clear() Clear() Clear()

Removes all items from the Azure Cosmos DB collection.

Contains(SqlParameter) Contains(SqlParameter) Contains(SqlParameter)

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

CopyTo(SqlParameter[], Int32) CopyTo(SqlParameter[], Int32) CopyTo(SqlParameter[], Int32)

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

GetEnumerator() GetEnumerator() GetEnumerator()

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

IndexOf(SqlParameter) IndexOf(SqlParameter) IndexOf(SqlParameter)

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

Insert(Int32, SqlParameter) Insert(Int32, SqlParameter) Insert(Int32, SqlParameter)

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

Remove(SqlParameter) Remove(SqlParameter) Remove(SqlParameter)

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

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

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

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

Applies to