Compartir a través de


ServerIPAddressCollection.Contains Method

Checks whether the specified key value exists in the collection.

Espacio de nombres: Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Function Contains ( _
    key As String _
) As Boolean
public bool Contains (
    string key
)
public:
bool Contains (
    String^ key
)
public boolean Contains (
    String key
)
public function Contains (
    key : String
) : boolean

Parámetros

  • key
    A String value that specifies the key value to check the existence of in the collection.

Valor devuelto

A Boolean value that specifies whether the key value exists in the collection. If True, the key value exists in the collection. If False, the key value does not exist in the collection.

Notas

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

Ejemplo

How to: Iterate Through the Members of a Collection in Visual Basic .NET

Seguridad para subprocesos

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

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

ServerIPAddressCollection Class
ServerIPAddressCollection Members
Microsoft.SqlServer.Management.Smo.Wmi Namespace

Otros recursos

Using Collections