次の方法で共有


ItemById メソッド

システム定義の一意の識別子を使用して、EndpointCollection コレクションからメンバを抽出します。

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

構文

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

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

パラメーター

戻り値

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