GCHandleExtensions.GetAddressOfStringData 메서드

정의

Important

이 API는 CLS 규격이 아닙니다.

에서 문자열 데이터의 주소를 검색 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>

매개 변수

handle
PinnedGCHandle<String>

포인터를 검색할 핸들입니다.

반품

Char*

고정된 String0번째 문자의 주소이거나 null 핸들이 개체를 가리키지 않는 경우

특성

예외

핸들이 초기화되지 않았거나 이미 삭제되었습니다.

적용 대상