AdomdParameterCollection.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.
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
<BrowsableAttribute(False)> _
Public Default Property Item ( _
parameterName As String _
) As AdomdParameter
Get
Set
'用途
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:
virtual property AdomdParameter^ default[String^ parameterName] {
AdomdParameter^ get (String^ parameterName) sealed;
void set (String^ parameterName, AdomdParameter^ value) sealed;
}
[<BrowsableAttribute(false)>]
abstract Item : AdomdParameter with get, set
[<BrowsableAttribute(false)>]
override Item : AdomdParameter with get, set
JScript 支援索引屬性的使用,但不支援新屬性的宣告。
參數
- parameterName
型別:System.String
The name of the AdomdParameter object to find.
屬性值
型別:Microsoft.AnalysisServices.AdomdServer.AdomdParameter
The AdomdParameter with the specified name.
例外狀況
例外狀況 | 條件 |
---|---|
[InvalidOperationException] | The specified member did not exist in the collection. For more information about this exception, see InvalidOperationException Class. |