Aspose::Font::License::SetLicense 方法
License::SetLicense(System::SharedPtr<System::IO::Stream>) method
为组件授权。
void Aspose::Font::License::SetLicense(System::SharedPtr<System::IO::Stream> stream)
| 参数 | 类型 | 描述 |
|---|---|---|
| 流 | System::SharedPtr<System::IO::Stream> | 包含许可证的流。 |
备注
使用此方法从流中加载许可证。
另见
- Typedef SharedPtr
- Class Stream
- Class License
- Namespace Aspose::Font
- Library Aspose.Font for C++
License::SetLicense(System::String) method
为组件授权。
void Aspose::Font::License::SetLicense(System::String licenseName)
| 参数 | 类型 | 描述 |
|---|---|---|
| licenseName | System::String | 可以是完整或简短的文件名 |
备注
尝试在以下位置查找许可证:
- 明确的路径。
包含 Aspose 组件程序集的文件夹。
包含客户端调用程序集的文件夹。
包含入口(启动)程序集的文件夹。
客户端调用程序集中的嵌入式资源。
**Note:**On the .NET Compact Framework, tries to find the license only in these locations:
明确的路径。
客户端调用程序集中的嵌入式资源。
包含 Aspose 组件 JAR 文件的文件夹。
包含客户端调用 JAR 文件的文件夹。
另见
- Class String
- Class License
- Namespace Aspose::Font
- Library Aspose.Font for C++