Sdílet prostřednictvím


DataSourceCollection.Item Property (String)

Gets the DataSource, with the specified identifier, from the collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    id As String _
) As DataSource
    Get
'Usage
Dim instance As DataSourceCollection
Dim id As String
Dim value As DataSource

value = instance(id)
public DataSource this[
    string id
] { get; }
public:
property DataSource^ default[String^ id] {
    DataSource^ get (String^ id);
}
member Item : DataSource
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.AnalysisServices.DataSource
The DataSource specified by the identifier.

Exceptions

Exception Condition
ArgumentNullException

id is a null reference (Nothing in Visual Basic).

ItemNotFoundException

id does not exist in the collection.