Freigeben über


PolicyCategorySubscriptionCollection.Contains-Methode (Int32)

Verifies whether the specified ID value exists in the collection.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public Function Contains ( _
    id As Integer _
) As Boolean
'Usage
Dim instance As PolicyCategorySubscriptionCollection 
Dim id As Integer 
Dim returnValue As Boolean 

returnValue = instance.Contains(id)
public bool Contains(
    int id
)
public:
bool Contains(
    int id
)
member Contains : 
        id:int -> bool
public function Contains(
    id : int
) : boolean

Parameter

Rückgabewert

Typ: System.Boolean
A Boolean value that specifies whether the ID value exists in the collection. If True, it exists. Otherwise, False.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiele

Verwenden von Auflistungen

Siehe auch

Verweis

PolicyCategorySubscriptionCollection Klasse

Contains-Überladung

Microsoft.SqlServer.Management.Dmf-Namespace