共用方式為


AvailabilityReplica.ConnectionModeInSecondaryRole 屬性

Gets or sets the connection model of the availability replica in secondary role.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ConnectionModeInSecondaryRole As AvailabilityReplicaConnectionModeInSecondaryRole 
    Get 
    Set
'用途
Dim instance As AvailabilityReplica 
Dim value As AvailabilityReplicaConnectionModeInSecondaryRole 

value = instance.ConnectionModeInSecondaryRole

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

屬性值

型別:Microsoft.SqlServer.Management.Smo.AvailabilityReplicaConnectionModeInSecondaryRole
The connection model of the availability replica in secondary role.

請參閱

參考

AvailabilityReplica 類別

Microsoft.SqlServer.Management.Smo 命名空間