Skip to main content

SqlQueryCollection Members

A collection of SqlQuery objects in the SqlDataSource.

Properties

Name Description
Count Counts the SQL queries that are available in a collection.
Item[Int32] Provides indexed access to individual items in the collection.
Item[String] Provides access to an individual item in the collection by its name.

Methods

Name Description
Add(SqlQuery) Adds the specified query to the collection.
AddRange(SqlQuery[]) Appends an array of SQL queries to the SqlQueryCollection.
AddRange(IEnumerable<SqlQuery>) Appends a collection of SQL queries to the SqlQueryCollection.
CheckQueryName(SqlQuery) Checks whether or not a query with the specified name can be added to the SqlQueryCollection.
Clear() Removes all items from the collection.
Contains(SqlQuery) Determines whether or not the collection contains the specified SQL query.
ContainsName(String) Indicates whether or not a query with the specified name exists in the SqlQueryCollection.
CopyTo(SqlQuery[], Int32) Copies the entire SQL query collection to a one dimensional array starting at the specified index of the target array.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GenerateUniqueName(SqlQuery) Generates the unique name for a SQL query within the collection.
GetEnumerator() Returns the queries stored in the SqlQueryCollection.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IndexOf(SqlQuery) Returns the zero-based index of the specified SQL query in the collection.
Insert(Int32, SqlQuery) Inserts the specified SQL query into the collection at the specified position.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Remove(SqlQuery) Removes the specified query from the collection.
RemoveAt(Int32) Removes the element at the specified index from the collection.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also