Compartir a través de


RegisteredServerCollection.Contains Method

Determines whether the specified string value exists within the collection.

Espacio de nombres: Microsoft.SqlServer.Management.Smo.RegisteredServers
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 a value for which the existence within the collection is being determined.

Valor devuelto

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

Notas

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .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

RegisteredServerCollection Class
RegisteredServerCollection Members
Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

Otros recursos

Using Collections