AdomdParameterCollection Class

Gets a collection of AdomdParameter objects contained in an AdomdCommand object.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.AnalysisServices.AdomdClient.AdomdParameterCollection

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

Syntax

'Declaration
Public NotInheritable Class AdomdParameterCollection _
    Inherits MarshalByRefObject _
    Implements IDataParameterCollection, IList, ICollection, IEnumerable
'Usage
Dim instance As AdomdParameterCollection
public sealed class AdomdParameterCollection : MarshalByRefObject, 
    IDataParameterCollection, IList, ICollection, IEnumerable
public ref class AdomdParameterCollection sealed : public MarshalByRefObject, 
    IDataParameterCollection, IList, ICollection, IEnumerable
[<SealedAttribute>]
type AdomdParameterCollection =  
    class 
        inherit MarshalByRefObject 
        interface IDataParameterCollection 
        interface IList 
        interface ICollection 
        interface IEnumerable 
    end
public final class AdomdParameterCollection extends MarshalByRefObject implements IDataParameterCollection, IList, ICollection, IEnumerable

The AdomdParameterCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of AdomdParameter objects in the AdomdParameterCollection collection.
Public property Item[Int32] Gets or sets the AdomdParameter object at the specified index, in the AdomdParameterCollection.
Public property Item[String] Gets or sets the AdomdParameter object in the AdomdParameterCollection with the specified name.

Top

Methods

  Name Description
Public method Add(AdomdParameter) Adds an AdomdParameter object to the AdomdParameterCollection collection.
Public method Add(String, Object) Creates a new AdomdParameter object with the specified property name and value, and adds it to the collection.
Public method Clear Removes all parameters from the AdomdParameterCollection object.
Public method Contains(String) Given a property name, this method determines whether a parameter is in the AdomdParameterCollection collection.
Public method Contains(AdomdParameter) Determines whether a parameter is in the AdomdParameterCollection collection.
Public method CopyTo Copies the elements of the AdomdParameterCollection collection to the specified array.
Public method CreateObjRef Security Critical. (Inherited from MarshalByRefObject.)
Public method Equals (Inherited from Object.)
Public method Find Gets the specified AdomdParameter object from the AdomdParameterCollection collection by its name.
Public method GetHashCode (Inherited from Object.)
Public method GetLifetimeService Security Critical. (Inherited from MarshalByRefObject.)
Public method GetType (Inherited from Object.)
Public method IndexOf(String) Given a property name, this method returns the zero-based index of the first occurrence of a parameter in the AdomdParameterCollection collection.
Public method IndexOf(AdomdParameter) Returns the zero-based index of the first occurrence of a parameter in the AdomdParameterCollection collection.
Public method InitializeLifetimeService Security Critical. (Inherited from MarshalByRefObject.)
Public method Insert Inserts a parameter into the AdomdParameterCollection collection at the specified index.
Public method Remove Removes the first occurrence of a specific parameter from the AdomdParameterCollection object.
Public method RemoveAt(Int32) Removes the parameter at the specified index of the AdomdParameterCollection object.
Public method RemoveAt(String) Removes the parameter specified by name in the AdomdParameterCollection object.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add Adds an item to the collection.
Explicit interface implemetationPrivate method IList.Contains Determines whether the collection contains the specified value.
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at a particular array index.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate method IList.IndexOf Determines the index of the specified item in the collection.
Explicit interface implemetationPrivate method IList.Insert Inserts an item to the collection at the specified index.
Explicit interface implemetationPrivate property IList.IsFixedSize Gets a value indicating whether the collection has a fixed size. Always returns false.
Explicit interface implemetationPrivate property IList.IsReadOnly Gets a value indicating whether the collection is read-only. Always returns false.
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a value indicating whether access to the AdomdParameterCollection is synchronized (thread safe). Always returns false.
Explicit interface implemetationPrivate property IList.Item Gets or sets the AdomdParameter object at the specified index, in the AdomdParameterCollection.
Explicit interface implemetationPrivate property IDataParameterCollection.Item Gets or sets the parameter with the specified name.
Explicit interface implemetationPrivate method IList.Remove Removes the first occurrence of a specified object from the collection.
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that can be used to synchronize access to the collection.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AnalysisServices.AdomdClient Namespace