Partilhar via


Propriedade do RDL RolePayloadOption.Role

Gets or sets the database mirroring role or roles that the endpoint supports.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (em Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Sintaxe

'Declaração
Public Property Role As DatabaseMirroringEndpointRole 
    Get 
    Set
'Uso
Dim instance As RolePayloadOption 
Dim value As DatabaseMirroringEndpointRole 

value = instance.Role

instance.Role = value
public DatabaseMirroringEndpointRole Role { get; set; }
public:
property DatabaseMirroringEndpointRole Role {
    DatabaseMirroringEndpointRole get ();
    void set (DatabaseMirroringEndpointRole value);
}
member Role : DatabaseMirroringEndpointRole with get, set
function get Role () : DatabaseMirroringEndpointRole 
function set Role (value : DatabaseMirroringEndpointRole)

Valor da propriedade

Tipo: Microsoft.SqlServer.TransactSql.ScriptDom.DatabaseMirroringEndpointRole
The database mirroring role or roles that the endpoint supports.

Consulte também

Referência

RolePayloadOption Classe

Namespace Microsoft.SqlServer.TransactSql.ScriptDom