Compartilhar via


Propriedade do RDL ServerRole.Parent

Gets the Server object that is the parent of the ServerRole object.

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

Sintaxe

'Declaração
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public Property Parent As Server 
    Get 
    Set
'Uso
Dim instance As ServerRole 
Dim value As Server 

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject)]
public Server Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject)]
public:
property Server^ Parent {
    Server^ get ();
    void set (Server^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject)>]
member Parent : Server with get, set
function get Parent () : Server 
function set Parent (value : Server)

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo.Server
A Server object value that is the parent of the ServerRole object.

Exemplos

Gerenciando usuários, funções e logons

Consulte também

Referência

ServerRole Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Permissões de funções de servidor fixas (Mecanismo de Banco de Dados)

sp_addsrvrolemember (Transact-SQL)