Compartilhar via


Método PolicyCategorySubscriptionCollection.Contains (Int32)

Verifies whether the specified ID value exists in the collection.

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

Sintaxe

'Declaração
Public Function Contains ( _
    id As Integer _
) As Boolean
'Uso
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

Parâmetros

Valor de retorno

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

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

Exemplos

Usando coleções

Consulte também

Referência

PolicyCategorySubscriptionCollection Classe

Sobrecarregado Contains

Namespace Microsoft.SqlServer.Management.Dmf