共用方式為


PrimaryRoleReplicaOption.AllowConnections 屬性

Gets or sets the replica option to allow in the connections.

命名空間:  Microsoft.SqlServer.TransactSql.ScriptDom
組件:  Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)

語法

'宣告
Public Property AllowConnections As AllowConnectionsOptionKind 
    Get 
    Set
'用途
Dim instance As PrimaryRoleReplicaOption 
Dim value As AllowConnectionsOptionKind 

value = instance.AllowConnections

instance.AllowConnections = value
public AllowConnectionsOptionKind AllowConnections { get; set; }
public:
property AllowConnectionsOptionKind AllowConnections {
    AllowConnectionsOptionKind get ();
    void set (AllowConnectionsOptionKind value);
}
member AllowConnections : AllowConnectionsOptionKind with get, set
function get AllowConnections () : AllowConnectionsOptionKind 
function set AllowConnections (value : AllowConnectionsOptionKind)

屬性值

型別:Microsoft.SqlServer.TransactSql.ScriptDom.AllowConnectionsOptionKind
The replica option to allow in the connections.

請參閱

參考

PrimaryRoleReplicaOption 類別

Microsoft.SqlServer.TransactSql.ScriptDom 命名空間