Propriété Item (String)
Gets the specified AdomdParameter object from the AdomdParameterCollection collection by its name. In Microsoft Visual C#, this property is the indexer for the AdomdParameterCollection class.
Espace de noms : Microsoft.AnalysisServices.AdomdClient
Assembly : Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)
Syntaxe
'Déclaration
<BrowsableAttribute(False)> _
Public Default Property Item ( _
parameterName As String _
) As AdomdParameter
Get
Set
'Utilisation
Dim instance As AdomdParameterCollection
Dim parameterName As String
Dim value As AdomdParameter
value = instance(parameterName)
instance(parameterName) = value
[BrowsableAttribute(false)]
public AdomdParameter this[
string parameterName
] { get; set; }
[BrowsableAttribute(false)]
public:
property AdomdParameter^ default[String^ parameterName] {
AdomdParameter^ get (String^ parameterName);
void set (String^ parameterName, AdomdParameter^ value);
}
[<BrowsableAttribute(false)>]
member Item : AdomdParameter with get, set
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.
Paramètres
- parameterName
Type : System. . :: . .String
The name of the AdomdParameter object to find.
Valeur de propriété
Type : Microsoft.AnalysisServices.AdomdClient. . :: . .AdomdParameter
Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | The specified member did not exist in the collection. |