IsolatedStorageFileStream.ReadByte Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Lê um único byte do IsolatedStorageFileStream objeto em armazenamento isolado.
public:
override int ReadByte();
public override int ReadByte();
override this.ReadByte : unit -> int
Public Overrides Function ReadByte () As Integer
Devoluções
O valor inteiro não assinado de 8 bits lido do ficheiro de armazenamento isolado.
Exemplos
O exemplo de código seguinte demonstra como o ReadByte método pode ser usado para ler dados de um IsolatedStorageFileStream objeto. Para o contexto completo deste exemplo, veja a IsolatedStorageFileStream visão geral.
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))