DatabaseMirroringPayload.ServerMirroringRole 属性

Gets or sets the server mirroring role.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ServerMirroringRole As ServerMirroringRole 
    Get 
    Set
用法
Dim instance As DatabaseMirroringPayload 
Dim value As ServerMirroringRole 

value = instance.ServerMirroringRole

instance.ServerMirroringRole = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public ServerMirroringRole ServerMirroringRole { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property ServerMirroringRole ServerMirroringRole {
    ServerMirroringRole get ();
    void set (ServerMirroringRole value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ServerMirroringRole : ServerMirroringRole with get, set
function get ServerMirroringRole () : ServerMirroringRole 
function set ServerMirroringRole (value : ServerMirroringRole)

属性值

类型:Microsoft.SqlServer.Management.Smo.ServerMirroringRole
A ServerMirroringRole object value that specifies the server mirroring role.

示例

实现端点

请参阅

参考

DatabaseMirroringPayload 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

数据库镜像管理

CREATE ENDPOINT (Transact-SQL)