FileProtectionManager.CreateProtectedAndOpenAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意
2022 年 7 月以降、Microsoft は Windows Information Protection (WIP) と WIP をサポートする API を非推奨とします。 Microsoft は引き続き、サポートされているバージョンの Windows で WIP をサポートします。 Windows の新しいバージョンには WIP の新機能は含まれません。また、今後のバージョンの Windows ではサポートされません。 詳細については、「Windows Information Protectionの終了を発表する」を参照してください。
データ保護のニーズに合わせて、Microsoft Purview 情報保護とMicrosoft Purview データ損失防止を使用することをお勧めします。 Purview を使用すると、構成のセットアップが簡略化され、高度な機能セットが提供されます。
エンタープライズで保護されたファイルを作成します。
public:
static IAsyncOperation<ProtectedFileCreateResult ^> ^ CreateProtectedAndOpenAsync(IStorageFolder ^ parentFolder, Platform::String ^ desiredName, Platform::String ^ identity, CreationCollisionOption collisionOption);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder const& parentFolder, winrt::hstring const& desiredName, winrt::hstring const& identity, CreationCollisionOption const& collisionOption);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ProtectedFileCreateResult> CreateProtectedAndOpenAsync(IStorageFolder parentFolder, string desiredName, string identity, CreationCollisionOption collisionOption);
function createProtectedAndOpenAsync(parentFolder, desiredName, identity, collisionOption)
Public Shared Function CreateProtectedAndOpenAsync (parentFolder As IStorageFolder, desiredName As String, identity As String, collisionOption As CreationCollisionOption) As IAsyncOperation(Of ProtectedFileCreateResult)
パラメーター
- parentFolder
- IStorageFolder
エンタープライズで保護されたファイルを作成するフォルダー。
- desiredName
-
String
Platform::String
winrt::hstring
新しいエンタープライズ保護ファイルの目的の名前。
- identity
-
String
Platform::String
winrt::hstring
エンタープライズ ID。 これは、管理されているメール アドレスまたはドメインです。 アプリでは 、IsIdentityManaged を使用して、メール アドレスまたはドメインが管理されていることを確認する必要があります。
- collisionOption
- CreationCollisionOption
desiredName が既に存在する場合の処理を指定する CreationCollisionOption 値。
戻り値
このメソッドの呼び出しが正常に完了すると、新しく作成された保護されたファイルを表す ProtectedFileCreateResult オブジェクトが返されます。
- 属性
Windows の要件
アプリの機能 |
enterpriseDataPolicy
|