LicenseSetLicense Method (FileInfo)

Licenses the component.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public void SetLicense(
	FileInfo licenseFile
)

Parameters

licenseFile
Type: System.IOFileInfo
File of licenseFileInfo.
Exceptions
ExceptionCondition
ArgumentNullExceptionlicenseFile is null.
FileNotFoundExceptionThe file is not found.
UnauthorizedAccessExceptionThe file is read-only or is a directory.
DirectoryNotFoundExceptionThe specified path is invalid, such as being on an unmapped drive.
IOExceptionThe file is already open.
See Also