GCHandleExtensions.GetAddressOfStringData Método

Definição

Importante

Esta API não está em conformidade com CLS.

Recupera o endereço dos dados da cadeia em handle.

public:
[System::Runtime::CompilerServices::Extension]
 static char* GetAddressOfStringData(System::Runtime::InteropServices::PinnedGCHandle<System::String ^> handle);
[System.CLSCompliant(false)]
public static char* GetAddressOfStringData(this System.Runtime.InteropServices.PinnedGCHandle<string> handle);
[<System.CLSCompliant(false)>]
static member GetAddressOfStringData : System.Runtime.InteropServices.PinnedGCHandle<string> -> nativeptr<char>

Parâmetros

handle
PinnedGCHandle<String>

A alavanca para recuperar o ponteiro.

Devoluções

Char*

O endereço do carácter 0 do fixado String, ou null se o handle não aponta para nenhum objeto.

Atributos

Exceções

A pega não está inicializada ou já está descartada.

Aplica-se a