共用方式為


AdomdRestrictionCollection.Item 屬性

Gets or sets the specified AdomdRestriction from the collection by its index. In Microsoft Visual C#, this property is the indexer for the AdomdRestrictionCollection class.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Public Default Property Item ( _
    index As Integer _
) As AdomdRestriction 
    Get 
    Set
'用途
Dim instance As AdomdRestrictionCollection 
Dim index As Integer 
Dim value As AdomdRestriction 

value = instance(index)

instance(index) = value
public AdomdRestriction this[
    int index
] { get; set; }
public:
property AdomdRestriction^ default[int index] {
    AdomdRestriction^ get (int index);
    void set (int index, AdomdRestriction^ value);
}
member Item : AdomdRestriction with get, set
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

屬性值

型別:Microsoft.AnalysisServices.AdomdClient.AdomdRestriction
The element at the specified index.

請參閱

參考

AdomdRestrictionCollection 類別

Microsoft.AnalysisServices.AdomdClient 命名空間