RolePayloadOption.Role Property

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

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)

Syntax

'Declaration
Public Property Role As DatabaseMirroringEndpointRole
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.Data.Schema.ScriptDom.Sql.DatabaseMirroringEndpointRole
Returns a DatabaseMirroringEndpointRole enumeration value.

.NET Framework Security

See Also

Reference

RolePayloadOption Class

Microsoft.Data.Schema.ScriptDom.Sql Namespace