AccountCollection.Item Property (String)

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

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    accountType As String _
) As Account
    Get
'Usage
Dim instance As AccountCollection
Dim accountType As String
Dim value As Account

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

Parameters

Property Value

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

Exceptions

Exception Condition
ArgumentNullException

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

ItemNotFoundException

accountType does not exist in the collection.