ReadOnlyMemory<T>.Pin 메서드

정의

메모리에 대한 핸들을 만듭니다.

public:
 System::Buffers::MemoryHandle Pin();
public System.Buffers.MemoryHandle Pin();
member this.Pin : unit -> System.Buffers.MemoryHandle
Public Function Pin () As MemoryHandle

반품

메모리에 대한 핸들입니다.

예외

비프라임(Blittable이 아닌) 멤버가 있는 인스턴스는 고정할 수 없습니다.

설명

Important

가비지 수집기는 반환 MemoryHandle 된 메모리가 삭제될 때까지 메모리를 이동하지 않으므로 메모리 주소를 사용하고 사용할 수 있습니다.

적용 대상