次の方法で共有


AlertCategoryCollection.ItemById メソッド

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

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

構文

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

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

パラメーター

戻り値

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

使用例

コレクションの使用

関連項目

参照

AlertCategoryCollection クラス

Microsoft.SqlServer.Management.Smo.Agent 名前空間