共用方式為


Item 屬性

Gets the item specified by the key. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public ReadOnly Default Property Item ( _
    key As K _
) As T
    Get
'用途
Dim instance As SfcCollection
Dim key As K
Dim value As T

value = instance(key)
public T this[
    K key
] { get; }
public:
property T default[K key] {
    T get (K key);
}
member Item : 'T
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

  • key
    型別:K
    The key that identifies the item to get.

屬性值

型別:T
The object specified by the key.