依據名稱,從集合取得指定的 Level。 在 Microsoft Visual C# 中,這個屬性是 LevelCollection 類別的索引子。
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
Public ReadOnly Default Property Item ( _
name As String _
) As Level
Get
'用途
Dim instance As LevelCollection
Dim name As String
Dim value As Level
value = instance(name)
public Level this[
string name
] { get; }
public:
property Level^ default[String^ name] {
Level^ get (String^ name);
}
member Item : Level
JScript 支援索引屬性的使用,但不支援新屬性的宣告。
參數
- name
型別:String
要尋找之 Level 的名稱。
屬性值
型別:Microsoft.AnalysisServices.AdomdServer.Level
具有指定名稱的 Level。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| AdomdErrorResponseException | 提供者在回應中傳回錯誤。 |
| AdomdUnknownResponseException | 提供者傳送了無法辨識的回應。 |
| AdomdConnectionException | 連接已中斷。 |
| [InvalidOperationException] | 在集合中找不到 Level。 如需有關此例外的詳細資訊,請參閱<InvalidOperationException class>。 |