RestrictedUser 属性

Gets or sets a Boolean property value that specifies whether access to the restored database is restricted to members of the db_owner fixed database role and the dbcreator and sysadmin fixed server roles.

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

语法

声明
Public Property RestrictedUser As Boolean
    Get
    Set
用法
Dim instance As Restore
Dim value As Boolean

value = instance.RestrictedUser

instance.RestrictedUser = value
public bool RestrictedUser { get; set; }
public:
property bool RestrictedUser {
    bool get ();
    void set (bool value);
}
member RestrictedUser : bool with get, set
function get RestrictedUser () : boolean
function set RestrictedUser (value : boolean)

属性值

类型:System. . :: . .Boolean
A Boolean value that specifies whether access to the restored database will be restricted.
If True, access to the restored database is restricted to the db_owner fixed database role, and the dbcreator and sysadmin fixed server roles. Otherwise, False (default).