Delen via


RolePayloadOption.Role Property

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

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

Syntax

'Declaration
Public Property Role As DatabaseMirroringEndpointRole 
    Get 
    Set
'Usage
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)

Property Value

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

See Also

Reference

RolePayloadOption Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace