Właściwość AccountCollection.Item (String)
Pobiera Account, z określonym identyfikatorem, z kolekcja.
Przestrzeń nazw: Microsoft.AnalysisServices
Zestaw: Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)
Składnia
'Deklaracja
Public ReadOnly Default Property Item ( _
accountType As String _
) As Account
Get
'Użycie
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
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.
Parametry
- accountType
Typ: System.String
Identyfikator Account mają być zwrócone.
Wartość właściwości
Typ: Microsoft.AnalysisServices.Account
Account Określony przez identyfikator.
Wyjątki
| Wyjątek | Warunek |
|---|---|
| ArgumentNullException | accountTypejest odwołaniem do wartości null (nic nie w języku Visual Basic). |
| ItemNotFoundException | accountTypenie istnieje kolekcja. |
Zobacz także