共用方式為


PropertyCollection.Item 屬性

取得或設定具有指定之索引鍵的 Object

命名空間:  Microsoft.VisualStudio.Utilities
組件:  Microsoft.VisualStudio.CoreUtility (在 Microsoft.VisualStudio.CoreUtility.dll 中)

語法

'宣告
Public Default Property Item ( _
    key As Object _
) As Object
public Object this[
    Object key
] { get; set; }
public:
property Object^ default[Object^ key] {
    Object^ get (Object^ key);
    void set (Object^ key, Object^ value);
}
member Item : 
        key:Object -> Object with get, set
JScript 不支援索引屬性。

參數

  • key
    類型:Object

    項目的索引鍵。

屬性值

類型:Object
數值。

.NET Framework 安全性

請參閱

參考

PropertyCollection 類別

Microsoft.VisualStudio.Utilities 命名空間