次の方法で共有


UrnCollection.Item プロパティ

コレクション内にある指定したインデックス番号の Urn オブジェクトを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Default Property Item ( _
    index As Integer _
) As Urn 
    Get 
    Set
'使用
Dim instance As UrnCollection 
Dim index As Integer 
Dim value As Urn 

value = instance(index)

instance(index) = value
public Urn this[
    int index
] { get; set; }
public:
virtual property Urn^ default[int index] {
    Urn^ get (int index) sealed;
    void set (int index, Urn^ value) sealed;
}
abstract Item : Urn with get, set 
override Item : Urn with get, set
JScript はインデックス化されたプロパティの使用をサポートしていますが、新規の宣言はサポートしていません。

パラメーター

  • index
    型: System.Int32
    UrnCollection コレクション内の [T:T:Microsoft.SqlServer.Management.Sdk.Sfc.Urn] オブジェクトの位置を示す Int32 値です。

プロパティ値

型: Microsoft.SqlServer.Management.Sdk.Sfc.Urn
URN (Uniform Resource Name) アドレスを表す Urn オブジェクト値です。

実装

IList<T>.Item[Int32]

使用例

コレクションの使用

関連項目

参照

UrnCollection クラス

Microsoft.SqlServer.Management.Smo 名前空間