Поделиться через


SchemaCollectionBase.Contains Method (String)

Validates whether the parameter collection contains a member with a name equal to the specified string.

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Function Contains ( _
    name As String _
) As Boolean
public bool Contains (
    string name
)
public:
bool Contains (
    String^ name
)
public boolean Contains (
    String name
)
public function Contains (
    name : String
) : boolean

Параметры

  • name
    A String value that specifies the name to check to see whether it exists in the collection.

Возвращаемое значение

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

Пример

How to: Reference an Object by Using a Collection in Visual Basic .NET

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

SchemaCollectionBase Class
SchemaCollectionBase Members
Microsoft.SqlServer.Management.Smo Namespace

Другие ресурсы

Using Collections