共用方式為


RolePayloadOption.Role 屬性

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

命名空間:  Microsoft.SqlServer.TransactSql.ScriptDom
組件:  Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)

語法

'宣告
Public Property Role As DatabaseMirroringEndpointRole 
    Get 
    Set
'用途
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)

屬性值

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

請參閱

參考

RolePayloadOption 類別

Microsoft.SqlServer.TransactSql.ScriptDom 命名空間