JobCollection.Contains Method (String, Int32)

 

Determines whether the collection contains a job with the specified name and category ID.

Namespace:   Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public bool Contains(
	string name,
	int categoryID
)

Parameters

name
Type: System.String

A String value that specifies the name of the job to search for.

categoryID
Type: System.Int32

A Int32 value that specifies the category ID.

Return Value

Type: System.Boolean

A Boolean that is true if the collection contains a job with the specified name and category ID. Otherwise, false.

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Return to top
Show: