JobScheduleCollectionBase.Contains メソッド (String, Int32)

指定した文字列が参照先コレクション内に存在するかどうかを確認します。

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

構文

'宣言
Public Function Contains ( _
    name As String, _
    id As Integer _
) As Boolean
'使用
Dim instance As JobScheduleCollectionBase 
Dim name As String 
Dim id As Integer 
Dim returnValue As Boolean 

returnValue = instance.Contains(name, _
    id)
public bool Contains(
    string name,
    int id
)
public:
bool Contains(
    String^ name, 
    int id
)
member Contains : 
        name:string * 
        id:int -> bool
public function Contains(
    name : String, 
    id : int
) : boolean

パラメーター

  • name
    型: System.String
    コレクション内に存在するかどうかを確認するテキストを示す String 値です。
  • id
    型: System.Int32
    ジョブ スケジュールの ID を示す Int32 値です。

戻り値

型: System.Boolean
指定した文字列が参照先コレクションに存在する場合は true、それ以外の場合は false です。

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

JobScheduleCollectionBase クラス

Contains オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間