MemoryStream.Position Özellik

Tanım

Akış içindeki geçerli konumu alır veya ayarlar.

public:
 virtual property long Position { long get(); void set(long value); };
public override long Position { get; set; }
member this.Position : int64 with get, set
Public Overrides Property Position As Long

Özellik Değeri

Akış içindeki geçerli konum.

Özel durumlar

Akış kapatıldı.

Örnekler

Bu kod örneği, sınıfı için MemoryStream sağlanan daha büyük bir örneğin parçasıdır.

// Write the stream properties to the console.
Console::WriteLine( "Capacity = {0}, Length = {1}, "
"Position = {2}\n", memStream->Capacity.ToString(), memStream->Length.ToString(), memStream->Position.ToString() );
// Write the stream properties to the console.
Console.WriteLine(
    "Capacity = {0}, Length = {1}, Position = {2}\n",
    memStream.Capacity.ToString(),
    memStream.Length.ToString(),
    memStream.Position.ToString());
' Write the stream properties to the console.
Console.WriteLine( _
    "Capacity = {0}, Length = {1}, Position = {2}", _
    memStream.Capacity.ToString(), _
    memStream.Length.ToString(), _
    memStream.Position.ToString())

Şunlara uygulanır

Ayrıca bkz.