次の方法で共有


CredentialCollection.ItemById メソッド

一意の識別子を使用して、CredentialCollection コレクションからメンバーを抽出します。

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

構文

'宣言
Public Function ItemById ( _
    id As Integer _
) As Credential
'使用
Dim instance As CredentialCollection 
Dim id As Integer 
Dim returnValue As Credential 

returnValue = instance.ItemById(id)
public Credential ItemById(
    int id
)
public:
Credential^ ItemById(
    int id
)
member ItemById : 
        id:int -> Credential
public function ItemById(
    id : int
) : Credential

パラメーター

戻り値

型: Microsoft.SqlServer.Management.Smo.Credential
指定された ID 値を持つ Credential オブジェクトです。

使用例

コレクションの使用

関連項目

参照

CredentialCollection クラス

Microsoft.SqlServer.Management.Smo 名前空間