Windows.Security.Cryptography.DataProtection.DataProtectionProvider.ProtectStreamAsync C# (CSharp) Метод

ProtectStreamAsync() публичный Метод

public ProtectStreamAsync ( [ src, [ dest ) : IAsyncAction
src [
dest [
Результат IAsyncAction
		public extern IAsyncAction ProtectStreamAsync([In] IInputStream src, [In] IOutputStream dest);
		public extern IAsyncAction UnprotectStreamAsync([In] IInputStream src, [In] IOutputStream dest);

Usage Example

Пример #1
0
        /// <summary>
        /// Encrypt an input stream and output to another stream
        /// </summary>
        /// <param name="inStream"></param>
        /// <param name="outStream"></param>
        /// <param name="userDescriptor"></param>
        /// <returns></returns>
        public static async Task ProtectStreamToStream(IInputStream inStream, IOutputStream outStream, string userDescriptor)
        {
            // Create a DataProtectionProvider object for the specified descriptor.
            DataProtectionProvider Provider = new DataProtectionProvider(userDescriptor);

            await Provider.ProtectStreamAsync(inStream, outStream);

        }
All Usage Examples Of Windows.Security.Cryptography.DataProtection.DataProtectionProvider::ProtectStreamAsync