SafeHandle.SetHandle(IntPtr) Método

Definição

Define o identificador para o identificador pré-existente especificado.

protected:
 void SetHandle(IntPtr handle);
protected void SetHandle (IntPtr handle);
member this.SetHandle : nativeint -> unit
Protected Sub SetHandle (handle As IntPtr)

Parâmetros

handle
IntPtr

nativeint

O identificador pré-existente a ser usado.

Comentários

Use o SetHandle método somente se precisar dar suporte a um identificador pré-existente (por exemplo, se o identificador for retornado em uma estrutura) porque a infraestrutura de interoperabilidade com .NET Framework não dá suporte a identificadores de saída de marshaling em uma estrutura.

Aplica-se a