Lenguaje

IsolatedStorageFileStream.ReadByte Método

Definición

Lee un solo byte del IsolatedStorageFileStream objeto en almacenamiento aislado.

public:
 override int ReadByte();
public override int ReadByte();
override this.ReadByte : unit -> int
Public Overrides Function ReadByte () As Integer

Devoluciones

Valor entero sin signo de 8 bits leído del archivo de almacenamiento aislado.

Ejemplos

En el ejemplo de código siguiente se muestra cómo se puede usar el ReadByte 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