共用方式為


RestoreInfo.Security 屬性

Gets or sets the Security definition to apply to roles from the restore file.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Property Security As RestoreSecurity 
    Get 
    Set
'用途
Dim instance As RestoreInfo 
Dim value As RestoreSecurity 

value = instance.Security

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

屬性值

型別:Microsoft.AnalysisServices.RestoreSecurity
A RestoreSecurity enumeration value: CopyAll | SkipMembership | IgnoreSecurity

備註

  • CopyAll –all Role objects from the backup file will be restored as they were at the time of backup.

  • IgnoreSecurity –the server will remove all existing Role objects from the database that is in the backup file and replace them with the Role objects in database that is being overwritten. In effect, the user will see no change in the roles after restore. If backup is not overwriting the database, but just restoring anew, you will not see any roles after restore is finished.

  • SkipMembership –the server will retain membership information. All Role objects will be restored from backup, but membership in the roles will match the state before the restore. If the database is restored anew (not overwriting existing database), then after the restore, all Role objects will contain no members.

請參閱

參考

RestoreInfo 類別

Microsoft.AnalysisServices 命名空間