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>包含许可证的流。

备注

使用此方法从流中加载许可证。

void setLicense(java.io.InputStream stream)

另见

License::SetLicense(System::String) method

为组件授权。

void Aspose::Font::License::SetLicense(System::String licenseName)
参数类型描述
licenseNameSystem::String可以是完整或简短的文件名 或嵌入式资源的名称。使用空字符串切换到评估模式。

备注

尝试在以下位置查找许可证:

  1. 明确的路径。
  1. 包含 Aspose 组件程序集的文件夹。

  2. 包含客户端调用程序集的文件夹。

  3. 包含入口(启动)程序集的文件夹。

  4. 客户端调用程序集中的嵌入式资源。

**Note:**On the .NET Compact Framework, tries to find the license only in these locations:

  1. 明确的路径。

  2. 客户端调用程序集中的嵌入式资源。

  1. 包含 Aspose 组件 JAR 文件的文件夹。

  2. 包含客户端调用 JAR 文件的文件夹。

另见