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