Aspose::Page::License::SetLicense 方法

License::SetLicense(System::SharedPtr<System::IO::Stream>) method

为组件授权。

void Aspose::Page::License::SetLicense(System::SharedPtr<System::IO::Stream> stream)
ParameterType描述
System::SharedPtr<System::IO::Stream>一个包含许可证的流。

备注

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

void setLicense(java.io.InputStream stream)

另见

License::SetLicense(System::String) method

为组件授权。

void Aspose::Page::License::SetLicense(System::String licenseName)

备注

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

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

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

  3. 入口程序集的文件夹。

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

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

  1. 明确路径。

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

  1. 组件 JAR 文件的文件夹。
## 另见