FileProtectionManager.SaveFileAsContainerAsync 方法

定義

多載

SaveFileAsContainerAsync(IStorageFile)

注意

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

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

將受企業保護的檔案儲存為容器化版本。

SaveFileAsContainerAsync(IStorageFile, IIterable<String>)

注意

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

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

將受企業保護的檔案儲存為容器化版本,並與指定的使用者身分識別清單共用。

SaveFileAsContainerAsync(IStorageFile)

注意

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

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

將受企業保護的檔案儲存為容器化版本。

public:
 static IAsyncOperation<ProtectedContainerExportResult ^> ^ SaveFileAsContainerAsync(IStorageFile ^ protectedFile);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile const& protectedFile);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Overload("SaveFileAsContainerAsync")]
 static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile const& protectedFile);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Overload("SaveFileAsContainerAsync")]
public static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile);
function saveFileAsContainerAsync(protectedFile)
Public Shared Function SaveFileAsContainerAsync (protectedFile As IStorageFile) As IAsyncOperation(Of ProtectedContainerExportResult)

參數

protectedFile
IStorageFile

正在複製的受保護原始程式檔。

傳回

當這個方法的呼叫順利完成時,它會傳回 ProtectedContainerExportResult 物件,代表新建立的容器檔案。

屬性

另請參閱

適用於

SaveFileAsContainerAsync(IStorageFile, IIterable<String>)

注意

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

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

將受企業保護的檔案儲存為容器化版本,並與指定的使用者身分識別清單共用。

public:
 static IAsyncOperation<ProtectedContainerExportResult ^> ^ SaveFileAsContainerAsync(IStorageFile ^ protectedFile, IIterable<Platform::String ^> ^ sharedWithIdentities);
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("SaveFileAsContainerWithSharingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile const& protectedFile, IIterable<winrt::hstring> const& sharedWithIdentities);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("SaveFileAsContainerWithSharingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedContainerExportResult> SaveFileAsContainerAsync(IStorageFile protectedFile, IEnumerable<string> sharedWithIdentities);
function saveFileAsContainerAsync(protectedFile, sharedWithIdentities)
Public Shared Function SaveFileAsContainerAsync (protectedFile As IStorageFile, sharedWithIdentities As IEnumerable(Of String)) As IAsyncOperation(Of ProtectedContainerExportResult)

參數

protectedFile
IStorageFile

正在複製的受保護原始程式檔。

sharedWithIdentities

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

字串集合,表示要與容器化檔案共用的使用者身分識別。 例如,電子郵件收件者。

傳回

當這個方法的呼叫順利完成時,它會傳回 ProtectedContainerExportResult 物件,代表新建立的容器檔案。

屬性

Windows 需求

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

另請參閱

適用於