System::Runtime::InteropServices::Marshal::PtrToStringAuto メソッド

Marshal::PtrToStringAuto(IntPtr) method

アンマネージドのゼロ終端文字列から管理対象の String を作成します。

static String System::Runtime::InteropServices::Marshal::PtrToStringAuto(IntPtr ptr)
パラメーター説明
ptrIntPtrアンマネージド文字列へのポインタ。

ReturnValue

管理対象の文字列です。

参照

Marshal::PtrToStringAuto(IntPtr, int) method

アンマネージド文字列から管理対象の String を作成します。

static String System::Runtime::InteropServices::Marshal::PtrToStringAuto(IntPtr ptr, int length)
パラメーター説明
ptrIntPtrアンマネージド文字列へのポインタ。
lengthintアンマネージド文字列の長さ。

ReturnValue

管理対象の文字列です。

参照