Udostępnij za pośrednictwem


WindowsRuntimeBufferExtensions.IsSameData(IBuffer, IBuffer) Metoda

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Zwraca wartość wskazującą, czy dwa bufory (obiekty Windows. Storage. Streams. IBuffer) reprezentują ten sam region pamięci podstawowej.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsSameData(Windows::Storage::Streams::IBuffer ^ buffer, Windows::Storage::Streams::IBuffer ^ otherBuffer);
[System.CLSCompliant(false)]
public static bool IsSameData (this Windows.Storage.Streams.IBuffer buffer, Windows.Storage.Streams.IBuffer otherBuffer);
[<System.CLSCompliant(false)>]
static member IsSameData : Windows.Storage.Streams.IBuffer * Windows.Storage.Streams.IBuffer -> bool
<Extension()>
Public Function IsSameData (buffer As IBuffer, otherBuffer As IBuffer) As Boolean

Parametry

buffer
IBuffer

Pierwszy bufor.

otherBuffer
IBuffer

Drugi bufor.

Zwraca

Boolean

true Jeśli regiony pamięci reprezentowane przez dwa bufory mają ten sam punkt początkowy; w przeciwnym razie false .

Atrybuty

Dotyczy