共用方式為


ServerMirroringRole 屬性

Gets or sets the server mirroring role.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public Property ServerMirroringRole As ServerMirroringRole
    Get
    Set
'用途
Dim instance As DatabaseMirroringPayload
Dim value As ServerMirroringRole

value = instance.ServerMirroringRole

instance.ServerMirroringRole = value
[SfcPropertyAttribute]
public ServerMirroringRole ServerMirroringRole { get; set; }
[SfcPropertyAttribute]
public:
property ServerMirroringRole ServerMirroringRole {
    ServerMirroringRole get ();
    void set (ServerMirroringRole value);
}
[<SfcPropertyAttribute>]
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.

範例

實作端點