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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.