RestoreOptions.SetRestrictedUser 屬性
Gets or sets whether to restrict access for the newly restored database to members of the db_owner, dbcreator, or sysadmin roles.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)
語法
'宣告
Public Property SetRestrictedUser As Boolean
Get
Set
'用途
Dim instance As RestoreOptions
Dim value As Boolean
value = instance.SetRestrictedUser
instance.SetRestrictedUser = value
public bool SetRestrictedUser { get; set; }
public:
property bool SetRestrictedUser {
bool get ();
void set (bool value);
}
member SetRestrictedUser : bool with get, set
function get SetRestrictedUser () : boolean
function set SetRestrictedUser (value : boolean)
屬性值
型別:System.Boolean
True if restrict access for the newly restored database to members of the db_owner, dbcreator, or sysadmin roles; otherwise, false.