PinnedGCHandle<T>.FromIntPtr(IntPtr) Método

Definição

Retorna um novo PinnedGCHandle<T> objeto criado de um identificador para um objeto gerenciado.

public:
 static System::Runtime::InteropServices::PinnedGCHandle<T> FromIntPtr(IntPtr value);
public static System.Runtime.InteropServices.PinnedGCHandle<T> FromIntPtr(IntPtr value);
static member FromIntPtr : nativeint -> System.Runtime.InteropServices.PinnedGCHandle<'T (requires 'T : null)>
Public Shared Function FromIntPtr (value As IntPtr) As PinnedGCHandle(Of T)

Parâmetros

value
IntPtr

nativeint

Um IntPtr identificador para um objeto gerenciado do qual criar um PinnedGCHandle<T> objeto.

Retornos

Um novo PinnedGCHandle<T> objeto que corresponde ao parâmetro de valor.

Comentários

Esse método não valida o valor de identificador fornecido. O chamador deve garantir a validade do identificador.

A IntPtr representação de PinnedGCHandle<T> não é intercampável com GCHandle.

Aplica-se a