共用方式為


RolePayloadOption.Role 屬性

取得或設定端點所支援的資料庫鏡像角色。

命名空間:  Microsoft.Data.Schema.ScriptDom.Sql
組件:  Microsoft.Data.Schema.ScriptDom.Sql (在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

語法

'宣告
Public Property Role As DatabaseMirroringEndpointRole
    Get
    Set
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.Data.Schema.ScriptDom.Sql.DatabaseMirroringEndpointRole
傳回 DatabaseMirroringEndpointRole 列舉值。

.NET Framework 安全性

請參閱

參考

RolePayloadOption 類別

Microsoft.Data.Schema.ScriptDom.Sql 命名空間