System::Runtime::InteropServices::Marshal::SecureStringToGlobalAllocAnsi 方法

Marshal::SecureStringToGlobalAllocAnsi method

将指定安全字符串的内容复制到非托管内存,并转换为 ANSI 格式。

static IntPtr System::Runtime::InteropServices::Marshal::SecureStringToGlobalAllocAnsi(const SharedPtr<Security::SecureString> &s)
ParameterType描述
sconst SharedPtr<Security::SecureString>&安全字符串。

ReturnValue

非托管内存中的地址。

另见