Protection Provider. Protect Async(IBuffer) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously protects static data.
public: virtual IAsyncOperation<IBuffer ^> ^ ProtectAsync(IBuffer ^ data) = ProtectAsync;
/// [Windows.Foundation.Metadata.RemoteAsync] IAsyncOperation<IBuffer> ProtectAsync(IBuffer const& data);
[Windows.Foundation.Metadata.RemoteAsync] public IAsyncOperation<IBuffer> ProtectAsync(IBuffer data);
Public Function ProtectAsync (data As IBuffer) As IAsyncOperation(Of IBuffer)
Data to protect.
Represents an asynchronous operation.
You must call the DataProtectionProvider(String) constructor before calling this method.
For security descriptors and SDDL strings, you must set the enterprise authentication capability in the manifest. The enterprise authentication capability is restricted to UWP app built with company accounts, and is subject to additional onboarding validation. You should avoid the enterprise authentication capability unless it is absolutely necessary. For more information, see Registering for a developer account. For example, the following SID and SDDL providers require the enterprise authentication capability:
- "SID=S-1-5-21-4392301 AND SID=S-1-5-21-3101812"
These providers do not require the enterprise authentication capability: