IsolatedStorageFileStream.WriteByte(Byte) Método

Definición

Escribe un solo byte en el IsolatedStorageFileStream objeto .

public:
 override void WriteByte(System::Byte value);
public override void WriteByte(byte value);
override this.WriteByte : byte -> unit
Public Overrides Sub WriteByte (value As Byte)

Parámetros

value
Byte

Valor de byte que se va a escribir en el archivo de almacenamiento aislado.

Excepciones

El intento de escritura supera la cuota del IsolatedStorageFileStream objeto .

Ejemplos

En el ejemplo de código siguiente se muestra cómo se puede usar el WriteByte método para leer datos de un IsolatedStorageFileStream objeto . Para obtener el contexto completo de este ejemplo, consulte la IsolatedStorageFileStream información general.

Console.WriteLine("Writing data to the new file.");
while (source.Position < source.Length)
{
    inputChar = (byte)source.ReadByte();
    target.WriteByte(inputChar);
}

// Determine the size of the IsolatedStorageFileStream
// by checking its Length property.
Console.WriteLine("Total Bytes Read: " + source.Length);
Console.WriteLine("Writing data to the new file.")
While source.Position < source.Length
    inputChar = CByte(source.ReadByte())
    target.WriteByte(inputChar)
End While

' Determine the size of the IsolatedStorageFileStream
' by checking its Length property.
Console.WriteLine(("Total Bytes Read: " & source.Length))

Se aplica a