FileProtectionManager.UnprotectAsync 方法

定義

多載

UnprotectAsync(IStorageItem)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

從受企業保護的檔案中移除保護。

UnprotectAsync(IStorageItem, FileUnprotectOptions)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

從受企業保護的檔案中移除保護。

UnprotectAsync(IStorageItem)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

從受企業保護的檔案中移除保護。

public:
 static IAsyncOperation<FileProtectionInfo ^> ^ UnprotectAsync(IStorageItem ^ target);
/// [Windows.Foundation.Metadata.Overload("UnprotectAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem const& target);
[Windows.Foundation.Metadata.Overload("UnprotectAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target);
function unprotectAsync(target)
Public Shared Function UnprotectAsync (target As IStorageItem) As IAsyncOperation(Of FileProtectionInfo)

參數

target
IStorageItem

要解除保護的檔案。

傳回

當呼叫這個方法成功完成時,它會傳回 FileProtectionInfo 物件,以提供檔案保護狀態的相關資訊。

屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.15063.0 引進)
Windows Mobile Extension SDK (已於 10.0.15063.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v4.0 引進)

適用於

UnprotectAsync(IStorageItem, FileUnprotectOptions)

注意

從 2022 年 7 月開始,Microsoft 即將淘汰 Windows 資訊保護 (WIP) ,以及支援 WIP 的 API。 Microsoft 將繼續在支援的 Windows 版本上支援 WIP。 新版本的 Windows 不會包含 WIP 的新功能,且未來版本的 Windows 不支援此功能。 如需詳細資訊,請參閱宣佈 Windows 資訊保護的終止

針對資料保護需求,Microsoft 建議您使用Microsoft Purview 資訊保護Microsoft Purview 資料外洩防護。 Purview 簡化了組態設定,並提供一組進階的功能。

從受企業保護的檔案中移除保護。

public:
 static IAsyncOperation<FileProtectionInfo ^> ^ UnprotectAsync(IStorageItem ^ target, FileUnprotectOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("UnprotectWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem const& target, FileUnprotectOptions const& options);
[Windows.Foundation.Metadata.Overload("UnprotectWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FileProtectionInfo> UnprotectAsync(IStorageItem target, FileUnprotectOptions options);
function unprotectAsync(target, options)
Public Shared Function UnprotectAsync (target As IStorageItem, options As FileUnprotectOptions) As IAsyncOperation(Of FileProtectionInfo)

參數

target
IStorageItem

要解除保護的檔案。

options
FileUnprotectOptions

物件,指定是否要稽核此動作。

傳回

當呼叫這個方法成功完成時,它會傳回 FileProtectionInfo 物件,以提供檔案保護狀態的相關資訊。

屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.15063.0 引進)
Windows Mobile Extension SDK (已於 10.0.15063.0 引進)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (已於 v4.0 引進)

適用於