## SecureStringMarshal::SecureStringToGlobalAllocAnsi method


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

```cpp
static IntPtr System::Security::SecureStringMarshal::SecureStringToGlobalAllocAnsi(const SharedPtr<Security::SecureString> &s)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| s | const SharedPtr\\<Security::SecureString\\>\\& | 安全字符串。 |

### ReturnValue

非托管内存中的地址。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [SecureString](../../securestring/)
* Class [SecureStringMarshal](../)
* Namespace [System::Security](../../)
* Library [Aspose.Font for C++](../../../)
