﻿<?xml version="1.0" encoding="utf-8"?><Type Name="CryptoStream" FullName="System.Security.Cryptography.CryptoStream"><TypeSignature Maintainer="auto" Language="C#" Value="public class CryptoStream : System.IO.Stream" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CryptoStream extends System.IO.Stream" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.IO.Stream</BaseTypeName></Base><Interfaces></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The common language runtime uses a stream-oriented design for cryptography. The core of this design is <see cref="T:System.Security.Cryptography.CryptoStream" />. Any cryptographic objects that implement <see cref="T:System.Security.Cryptography.CryptoStream" /> can be chained together with any objects that implement <see cref="T:System.IO.Stream" />, so the streamed output from one object can be fed into the input of another object. The intermediate result (the output from the first object) does not need to be stored separately.</para><para>You should always explicitly close your <see cref="T:System.Security.Cryptography.CryptoStream" /> object after you are done using it by calling the <see cref="M:System.IO.Stream.Close" /> method.  Doing so flushes the stream and causes all remain blocks of data to be processed by the <see cref="T:System.Security.Cryptography.CryptoStream" /> object.  However, if an exception occurs before you call the <see cref="M:System.IO.Stream.Close" /> method, the <see cref="T:System.Security.Cryptography.CryptoStream" /> object might not be closed.  To ensure that the <see cref="M:System.IO.Stream.Close" /> method always gets called, place your call to the <see cref="M:System.IO.Stream.Close" /> method within the finally block of a try/catch statement.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Defines a stream that links data streams to cryptographic transformations.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public CryptoStream (System.IO.Stream stream, System.Security.Cryptography.ICryptoTransform transform, System.Security.Cryptography.CryptoStreamMode mode);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.IO.Stream stream, class System.Security.Cryptography.ICryptoTransform transform, valuetype System.Security.Cryptography.CryptoStreamMode mode) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters><Parameter Name="stream" Type="System.IO.Stream" /><Parameter Name="transform" Type="System.Security.Cryptography.ICryptoTransform" /><Parameter Name="mode" Type="System.Security.Cryptography.CryptoStreamMode" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Any object that derives from <see cref="T:System.IO.Stream" /> can be passed into the <paramref name="stream" /> parameter. Any object that implements <see cref="T:System.Security.Cryptography.ICryptoTransform" /> (such as <see cref="T:System.Security.Cryptography.HashAlgorithm" />) can be passed into the <paramref name="transform" /> parameter.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptoStream" /> class with a target data stream, the transformation to use, and the mode of the stream.</para></summary><param name="stream"><attribution license="cc4" from="Microsoft" modified="false" />The stream on which to perform the cryptographic transformation. </param><param name="transform"><attribution license="cc4" from="Microsoft" modified="false" />The cryptographic transformation that is to be performed on the stream. </param><param name="mode"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> values. </param></Docs></Member><Member MemberName="CanRead"><MemberSignature Language="C#" Value="public override bool CanRead { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool CanRead" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>True if the CryptoStream was created with <see cref="T:System.Security.Cryptography.CryptoStreamMode" />.<see cref="E:System.Security.Cryptography.CryptoStreamMode.Read" />, false otherwise.</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the current <see cref="T:System.Security.Cryptography.CryptoStream" /> is readable.</para></summary></Docs></Member><Member MemberName="CanSeek"><MemberSignature Language="C#" Value="public override bool CanSeek { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool CanSeek" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>Always false.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Seeking is not enabled in a <see cref="T:System.Security.Cryptography.CryptoStream" />, so this method always returns false.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether you can seek within the current <see cref="T:System.Security.Cryptography.CryptoStream" />.</para></summary></Docs></Member><Member MemberName="CanWrite"><MemberSignature Language="C#" Value="public override bool CanWrite { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool CanWrite" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>True if the CryptoStream was created with <see cref="T:System.Security.Cryptography.CryptoStreamMode" />.<see cref="E:System.Security.Cryptography.CryptoStreamMode.Write" />, false otherwise.</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the current <see cref="T:System.Security.Cryptography.CryptoStream" /> is writable.</para></summary></Docs></Member><Member MemberName="Clear"><MemberSignature Language="C#" Value="public void Clear ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Clear() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is a simple call to <see cref="M:System.IDisposable.Dispose" />.</para><para>Calling Dispose allows the resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" /> to be reallocated for other purposes. For more information about Dispose, see <format type="text/html"><a href="a17b0066-71c2-4ba4-9822-8e19332fc213">Cleaning Up Unmanaged Resources</a></format></para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Releases all resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" />.</para></summary></Docs></Member><Member MemberName="Close"><MemberSignature Language="C#" Value="public override void Close ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><summary>To be added</summary><remarks>This will call <see cref="M:System.Security.Cryptography.CryptoStream.FlushFinalBlock" /> if the CryptoStream was opened in <see cref="E:System.Security.Cryptography.CryptoStreamMode.Write" /> mode.</remarks></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Dispose"><MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="disposing" Type="System.Boolean" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize invokes Dispose with disposing set to false.</para><para>When the <paramref name="disposing" /> parameter is true, this method releases all resources held by any managed objects that this <see cref="T:System.Security.Cryptography.CryptoStream" /> references. This method invokes the Dispose() method of each referenced object.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" /> and optionally releases the managed resources.</para></summary><param name="disposing"><attribution license="cc4" from="Microsoft" modified="false" />true to release both managed and unmanaged resources; false to release only unmanaged resources. </param></Docs></Member><Member MemberName="Finalize"><MemberSignature Language="C#" Value="~CryptoStream ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="Flush"><MemberSignature Language="C#" Value="public override void Flush ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void Flush() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Flushing the stream will not flush its underlying encoder unless you explicitly call <see cref="M:System.Security.Cryptography.CryptoStream.Flush" /> or <see cref="M:System.IO.Stream.Close" />. Setting <see cref="P:System.IO.StreamWriter.AutoFlush" /> to true means that data will be flushed from the buffer to the stream, but the encoder state will not be flushed. This allows the encoder to keep its state (partial characters) so that it can encode the next block of characters correctly. This scenario affects UTF8 and UTF7 where certain characters can only be encoded after the encoder receives the adjacent character or characters.</para><block subset="none" type="note"><para>You should call either the <see cref="M:System.IO.Stream.Close" /> method or the <see cref="M:System.Security.Cryptography.CryptoStream.FlushFinalBlock" /> method to complete flushing the buffer.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Clears all buffers for the current stream and causes any buffered data to be written to the underlying device.</para></summary></Docs></Member><Member MemberName="FlushAsync"><MemberSignature Language="C#" Value="public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Threading.Tasks.Task FlushAsync(valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>You must preface your call to <see cref="M:System.Security.Cryptography.CryptoStream.FlushAsync(System.Threading.CancellationToken)" /> with the await (C#) or Await (Visual Basic) operator to suspend execution of the method until the task is complete. For more information, see <format type="text/html"><a href="db854f91-ccef-4035-ae4d-0911fde808c7">Asynchronous Programming with Async and Await (C# and Visual Basic)</a></format>.</para><para>If the operation is canceled before it completes, the returned task contains the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="P:System.Threading.Tasks.Task.Status" /> property. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Clears all buffers for the current stream asynchronously, causes any buffered data to be written to the underlying device, and monitors cancellation requests.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the asynchronous flush operation.</para></returns><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param></Docs></Member><Member MemberName="FlushFinalBlock"><MemberSignature Language="C#" Value="public void FlushFinalBlock ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void FlushFinalBlock() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Calling the <see cref="M:System.IO.Stream.Close" /> method will call <see cref="M:System.Security.Cryptography.CryptoStream.FlushFinalBlock" />. If you do not call <see cref="M:System.IO.Stream.Close" />, call <see cref="M:System.Security.Cryptography.CryptoStream.FlushFinalBlock" /> to complete flushing the buffer. Call <see cref="M:System.Security.Cryptography.CryptoStream.FlushFinalBlock" /> only when all stream activity is complete.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Updates the underlying data source or repository with the current state of the buffer, then clears the buffer.</para></summary></Docs></Member><Member MemberName="HasFlushedFinalBlock"><MemberSignature Language="C#" Value="public bool HasFlushedFinalBlock { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool HasFlushedFinalBlock" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property is set true when the <see cref="M:System.Security.Cryptography.CryptoStream.FlushFinalBlock" /> method is called.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the final buffer block has been written to the underlying stream. </para></summary></Docs></Member><Member MemberName="Length"><MemberSignature Language="C#" Value="public override long Length { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int64 Length" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Docs><value>This property isn't supported on CryptoStream and will always throw a <see cref="T:System.NotSupportedException" />.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property exists only to support inheritance from <see cref="T:System.IO.Stream" />, and cannot be used.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the length in bytes of the stream.</para></summary></Docs></Member><Member MemberName="Position"><MemberSignature Language="C#" Value="public override long Position { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int64 Position" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property exists only to support inheritance from <see cref="T:System.IO.Stream" />, and cannot be used.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the position within the current stream.</para></summary></Docs></Member><Member MemberName="Read"><MemberSignature Language="C#" Value="public override int Read (byte[] buffer, int offset, int count);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 Read(unsigned int8[] buffer, int32 offset, int32 count) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="buffer" Type="System.Byte[]" /><Parameter Name="offset" Type="System.Int32" /><Parameter Name="count" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream has been reached.</para></returns><param name="buffer"><attribution license="cc4" from="Microsoft" modified="false" />An array of bytes. A maximum of <paramref name="count" /> bytes are read from the current stream and stored in <paramref name="buffer" />. </param><param name="offset"><attribution license="cc4" from="Microsoft" modified="false" />The byte offset in <paramref name="buffer" /> at which to begin storing the data read from the current stream. </param><param name="count"><attribution license="cc4" from="Microsoft" modified="false" />The maximum number of bytes to be read from the current stream. </param></Docs></Member><Member MemberName="ReadAsync"><MemberSignature Language="C#" Value="public override System.Threading.Tasks.Task&lt;int&gt; ReadAsync (byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Threading.Tasks.Task`1&lt;int32&gt; ReadAsync(unsigned int8[] buffer, int32 offset, int32 count, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task&lt;System.Int32&gt;</ReturnType></ReturnValue><Parameters><Parameter Name="buffer" Type="System.Byte[]" /><Parameter Name="offset" Type="System.Int32" /><Parameter Name="count" Type="System.Int32" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>You must preface your call to <see cref="M:System.Security.Cryptography.CryptoStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)" /> with the await (C#) or Await (Visual Basic) operator to suspend execution of the method until the task is complete. For more information, see <format type="text/html"><a href="db854f91-ccef-4035-ae4d-0911fde808c7">Asynchronous Programming with Async and Await (C# and Visual Basic)</a></format>.</para><para>If the operation is canceled before it completes, the returned task contains the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="P:System.Threading.Tasks.Task.Status" /> property.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Reads a sequence of bytes from the current stream asynchronously, advances the position within the stream by the number of bytes read, and monitors cancellation requests.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the asynchronous read operation. The value of the task object's <paramref name="TResult" /> parameter contains the total number of bytes read into the buffer. The result can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the stream has been reached. </para></returns><param name="buffer"><attribution license="cc4" from="Microsoft" modified="false" />The buffer to write the data into.</param><param name="offset"><attribution license="cc4" from="Microsoft" modified="false" />The byte offset in <paramref name="buffer" /> at which to begin writing data from the stream.</param><param name="count"><attribution license="cc4" from="Microsoft" modified="false" />The maximum number of bytes to read.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param></Docs></Member><Member MemberName="Seek"><MemberSignature Language="C#" Value="public override long Seek (long offset, System.IO.SeekOrigin origin);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int64 Seek(int64 offset, valuetype System.IO.SeekOrigin origin) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Parameters><Parameter Name="offset" Type="System.Int64" /><Parameter Name="origin" Type="System.IO.SeekOrigin" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method exists only to support inheritance from <see cref="T:System.IO.Stream" />, and cannot be used.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the position within the current stream.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is not supported.</para></returns><param name="offset"><attribution license="cc4" from="Microsoft" modified="false" />A byte offset relative to the <paramref name="origin" /> parameter. </param><param name="origin"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.IO.SeekOrigin" /> object indicating the reference point used to obtain the new position. </param></Docs></Member><Member MemberName="SetLength"><MemberSignature Language="C#" Value="public override void SetLength (long value);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void SetLength(int64 value) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="value" Type="System.Int64" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property exists only to support inheritance from <see cref="T:System.IO.Stream" />, and cannot be used.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the length of the current stream.</para></summary><param name="value"><attribution license="cc4" from="Microsoft" modified="false" />The desired length of the current stream in bytes. </param></Docs></Member><Member MemberName="Write"><MemberSignature Language="C#" Value="public override void Write (byte[] buffer, int offset, int count);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void Write(unsigned int8[] buffer, int32 offset, int32 count) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="buffer" Type="System.Byte[]" /><Parameter Name="offset" Type="System.Int32" /><Parameter Name="count" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Writes a sequence of bytes to the current <see cref="T:System.Security.Cryptography.CryptoStream" /> and advances the current position within the stream by the number of bytes written.</para></summary><param name="buffer"><attribution license="cc4" from="Microsoft" modified="false" />An array of bytes. This method copies <paramref name="count" /> bytes from <paramref name="buffer" /> to the current stream. </param><param name="offset"><attribution license="cc4" from="Microsoft" modified="false" />The byte offset in <paramref name="buffer" /> at which to begin copying bytes to the current stream. </param><param name="count"><attribution license="cc4" from="Microsoft" modified="false" />The number of bytes to be written to the current stream. </param></Docs></Member><Member MemberName="WriteAsync"><MemberSignature Language="C#" Value="public override System.Threading.Tasks.Task WriteAsync (byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Threading.Tasks.Task WriteAsync(unsigned int8[] buffer, int32 offset, int32 count, valuetype System.Threading.CancellationToken cancellationToken) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Threading.Tasks.Task</ReturnType></ReturnValue><Parameters><Parameter Name="buffer" Type="System.Byte[]" /><Parameter Name="offset" Type="System.Int32" /><Parameter Name="count" Type="System.Int32" /><Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>You must preface your call to <see cref="M:System.Security.Cryptography.CryptoStream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)" /> with the await (C#) or Await (Visual Basic) operator to suspend execution of the method until the task is complete. For more information, see <format type="text/html"><a href="db854f91-ccef-4035-ae4d-0911fde808c7">Asynchronous Programming with Async and Await (C# and Visual Basic)</a></format>.</para><para>If the operation is canceled before it completes, the returned task contains the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> value for the <see cref="P:System.Threading.Tasks.Task.Status" /> property.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Writes a sequence of bytes to the current stream asynchronously, advances the current position within the stream by the number of bytes written, and monitors cancellation requests.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A task that represents the asynchronous write operation.</para></returns><param name="buffer"><attribution license="cc4" from="Microsoft" modified="false" />The buffer to write data from.</param><param name="offset"><attribution license="cc4" from="Microsoft" modified="false" />The zero-based byte offset in <paramref name="buffer" /> from which to begin writing bytes to the stream.</param><param name="count"><attribution license="cc4" from="Microsoft" modified="false" />The maximum number of bytes to write.</param><param name="cancellationToken"><attribution license="cc4" from="Microsoft" modified="false" />The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param></Docs></Member></Members></Type>