Dela via


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
'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);
}
public function get Role () : DatabaseMirroringEndpointRole 
public 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

RolePayloadOption Members

Microsoft.Data.Schema.ScriptDom.Sql Namespace