Aspose.Tasks for C++
|
Provides methods to license the component. More...
#include <License.h>
Inherits System::Object.
Public Member Functions | |
License () | |
Initializes a new instance of the License class. More... | |
void | SetLicense (const System::String &licenseName) |
Licenses the component. More... | |
void | SetLicense (const System::SharedPtr< System::IO::Stream > &stream) |
Licenses the component. More... | |
Provides methods to license the component.
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains <ms> the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
</ms> <java> the component jar file:
</java>
Aspose::Tasks::License::License | ( | ) |
Initializes a new instance of the License class.
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains <ms> the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
</ms> <java> the component jar file:
</java>
void Aspose::Tasks::License::SetLicense | ( | const System::SharedPtr< System::IO::Stream > & | stream | ) |
Licenses the component.
stream | A stream that contains the license. |
Use this method to load a license from a stream.
<javaName>void setLicense(java.io.InputStream stream)</javaName>
void Aspose::Tasks::License::SetLicense | ( | const System::String & | licenseName | ) |
Licenses the component.
licenseName | Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode. |
Tries to find the license in the following locations:
1. Explicit path.
<ms>
2. The folder that contains the Aspose component assembly.
3. The folder that contains the client's calling assembly.
4. The folder that contains the entry (startup) assembly.
5. An embedded resource in the client's calling assembly.
Note:On the .NET Compact Framework, tries to find the license only in these locations:
1. Explicit path.
2. An embedded resource in the client's calling assembly.
</ms> <java>
2. The folder that contains the Aspose component JAR file.
3. The folder that contains the client's calling JAR file.
</java>
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains <ms> the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
</ms> <java> the component jar file:
</java>