Item 屬性
Gets or sets the specified AdomdProperty from the AdomdPropertyCollection by its index. In Microsoft Visual C#, this property is the indexer for the AdomdPropertyCollection class.
命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)
語法
'宣告
Public Default Property Item ( _
index As Integer _
) As AdomdProperty
Get
Set
'用途
Dim instance As AdomdPropertyCollection
Dim index As Integer
Dim value As AdomdProperty
value = instance(index)
instance(index) = value
public AdomdProperty this[
int index
] { get; set; }
public:
property AdomdProperty^ default[int index] {
AdomdProperty^ get (int index);
void set (int index, AdomdProperty^ value);
}
member Item : AdomdProperty with get, set
JScript 支援索引屬性的使用,但不支援新屬性的宣告。
參數
- index
型別:System. . :: . .Int32
The zero-based index of the AdomdProperty to find.
屬性值
型別:Microsoft.AnalysisServices.AdomdClient. . :: . .AdomdProperty
The element at the specified index.