Class License

Class License

이름 공간 : Aspose.Html 구성: Aspose.HTML.dll (25.4.0)

구성 요소를 라이센스 할 수있는 방법을 제공합니다.

[ComVisible(true)]
public class License

Inheritance

object License

상속 회원들

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");
```</ms><java>
the component jar file:

```csharp
License license = new License();
license.setLicense("MyLicense.lic");
```</java>

## Constructors

### <a id="Aspose_Html_License__ctor"></a> License\(\)

Initializes a new instance of this class.

```csharp
public License()

Examples

이 예제에서는 MyLicense.lic라는 라이센스 파일을 찾으려고 시도합니다.포함된 폴더에 포함된

구성 요소, 전화 모임을 포함하는 폴더, 입력 모임의 폴더, 그리고 전화 모임의 삽입 자원.

License license = new License();
license.SetLicense("MyLicense.lic");
```</ms><java>
the component jar file:

```csharp
License license = new License();
license.setLicense("MyLicense.lic");
```</java>

## Methods

### <a id="Aspose_Html_License_SetLicense_System_String_"></a> SetLicense\(string\)

Licenses the component.

```csharp
public void SetLicense(string licenseName)

Parameters

licenseName string

전체 또는 짧은 파일 이름이 될 수 있습니다. 또는 내장된 자원의 이름.빈 스트립을 사용하여 평가 모드로 전환합니다.

Examples

이 예제에서는 MyLicense.lic라는 라이센스 파일을 찾으려고 시도합니다.포함된 폴더에 포함된

구성 요소, 전화 모임을 포함하는 폴더, 입력 모임의 폴더, 그리고 전화 모임의 삽입 자원.

License license = new License();
license.SetLicense("MyLicense.lic");
```</ms><java>
the component jar file:

```csharp
License license = new License();
license.setLicense("MyLicense.lic");
```</java>

#### Remarks

<p>Tries to find the license in the following locations:</p>
<p>1. Explicit path.</p>
<ms>
<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>
</ms>
<java>
<p>2. The folder that contains the Aspose component JAR file.</p>
<p>3. The folder that contains the client's calling JAR file.</p>
</java>

### <a id="Aspose_Html_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

이 방법을 사용하여 흐름에서 라이센스를 업로드합니다.

 한국어