Class License
Class License
이름 공간 : Aspose.OCR 모임: Aspose.OCR.dll (25.4.0)
구성 요소를 라이센스 할 수있는 방법을 제공합니다.
public class License
Inheritance
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
이 예제에서는 MyLicense.lic라는 라이센스 파일을 찾으려고 시도합니다.포함된 폴더에 포함된
부름을 포함하는 폴더에있는 구성 요소,입구 모임의 폴더에서 그리고 그 후에 호출 모임의 삽입 자원에서.
License license = new License();
license.SetLicense("MyLicense.lic");
Constructors
License()
public License()
Properties
IsLicensed
제품이 라이센스가 있는지 여부를 나타내는 값을 얻습니다.
public bool IsLicensed { get; }
부동산 가치
Methods
SetLicense(스트리트)
구성 요소를 허가합니다.
public void SetLicense(string licenseName)
Parameters
licenseName
string
Examples
이 예제에서는 MyLicense.lic라는 라이센스 파일을 찾으려고 시도합니다.포함된 폴더에 포함된
부름을 포함하는 폴더에있는 구성 요소,입구 모임의 폴더에서 그리고 그 후에 호출 모임의 삽입 자원에서.
License license = new License();
license.SetLicense("MyLicense.lic");
```<param name="licenseName"/>Can be a full or short file name or name of an embedded resource.
Use an empty string to switch to evaluation mode.
#### Remarks
<p>Tries to find the license in the following locations:</p>
<p>1. Explicit path.</p>
<p>2. The folder that contains the Aspose component assembly.</p>
<p>3. The folder that contains the client's calling assembly.</p>
<p>4. The folder that contains the entry (startup) assembly.</p>
<p>5. An embedded resource in the client's calling assembly.</p>
<p>
<b>Note:</b>On the .NET Compact Framework, tries to find the license only in these locations:</p>
<p>1. Explicit path.</p>
<p>2. An embedded resource in the client's calling assembly.</p>
### <a id="Aspose_OCR_License_SetLicense_System_IO_Stream_"></a> SetLicense\(Stream\)
Licenses the component.
```csharp
public void SetLicense(Stream stream)
Parameters
stream
Stream
라이센스를 포함하는 스트림.
Examples
License license = new License();
license.SetLicense(myStream);
Remarks
이 방법을 사용하여 흐름에서 라이센스를 업로드합니다.