SecureStringMarshal.SecureStringToGlobalAllocUnicode(SecureString) 方法
定义
将托管 SecureString 对象的内容复制到非托管内存中。Copies the contents of a managed SecureString object into unmanaged memory.
public:
static IntPtr SecureStringToGlobalAllocUnicode(System::Security::SecureString ^ s);
public static IntPtr SecureStringToGlobalAllocUnicode (System.Security.SecureString s);
static member SecureStringToGlobalAllocUnicode : System.Security.SecureString -> nativeint
Public Shared Function SecureStringToGlobalAllocUnicode (s As SecureString) As IntPtr
参数
要复制的托管对象。The managed object to copy.
返回
非托管内存中复制 s 的地址,如果 s 是长度为 0 的 SecureString 对象,则为 0。The address, in unmanaged memory, where s was copied, or 0 if s is a SecureString object whose length is 0.
例外
s 参数为 null。The s parameter is null.
没有足够的可用内存。There is insufficient memory available.