Compartir a través de


Database.IsMember Method

Determines whether the specified group or role belongs to the database.

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

Sintaxis

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

Parámetros

  • groupOrRole
    A String value that specifies the name of the group or role.

Valor devuelto

A Boolean value that specifies whether the specified group or role is associated with the database. If True, the specified group or role belongs to the database. If False, the specified group or role belongs to the database.

Notas

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

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

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

Otros recursos

How to: Create, Alter, and Remove a Database in Visual Basic .NET
Granting, Revoking, and Denying Permissions
Creating, Altering, and Removing Databases
CREATE DATABASE (Transact-SQL)