获取或设置终结点支持的一个或多个数据库镜像角色。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。