Propriété Item (String)
Gets the Account, with the specified identifier, from the collection.
Espace de noms : Microsoft.AnalysisServices
Assembly : Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Syntaxe
'Déclaration
Public ReadOnly Default Property Item ( _
accountType As String _
) As Account
Get
'Utilisation
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 prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.
Paramètres
- accountType
Type : System. . :: . .String
The identifier of the Account to be returned.
Valeur de propriété
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. |
Voir aussi