ObjectParameterCollection Class

Definition

This class represents a collection of query parameters at the object layer.

public class ObjectParameterCollection : System.Collections.Generic.ICollection<System.Data.Entity.Core.Objects.ObjectParameter>, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectParameter>
type ObjectParameterCollection = class
    interface ICollection<ObjectParameter>
    interface seq<ObjectParameter>
    interface IEnumerable
Public Class ObjectParameterCollection
Implements ICollection(Of ObjectParameter), IEnumerable(Of ObjectParameter)
Inheritance
ObjectParameterCollection
Implements

Properties

Count

Gets the number of parameters currently in the collection.

Item[String]

Provides an indexer that allows callers to retrieve parameters by name.

Methods

Add(ObjectParameter)

Adds the specified ObjectParameter to the collection.

Clear()

Deletes all ObjectParameter instances from the collection.

Contains(ObjectParameter)

Checks for the existence of a specified ObjectParameter in the collection by reference.

Contains(String)

Determines whether an ObjectParameter with the specified name is in the collection.

CopyTo(ObjectParameter[], Int32)

Allows the parameters in the collection to be copied into a supplied array, starting with the object at the specified index.

GetEnumerator()

These methods return enumerator instances, which allow the collection to be iterated through and traversed.

Remove(ObjectParameter)

Removes an instance of an ObjectParameter from the collection by reference if it exists in the collection.

Explicit Interface Implementations

ICollection<ObjectParameter>.IsReadOnly

This collection is read-write - parameters may be added, removed and [somewhat] modified at will (value only) - provided that the implementation the collection belongs to has not locked its parameters because it's command definition has been prepared.

IEnumerable.GetEnumerator()

Returns an untyped enumerator over the collection.

Applies to