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