# BookOnixLicense

Publisher-supplied license metadata. No rights are inferred or enforced.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[BookOnixLicense.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixLicense.cs#L32)

**Implements**

`IEquatable<BookOnixLicense>`

**Modifiers**

sealed

Publisher-supplied license metadata. No rights are inferred or enforced.

## Inheritance

- object
- BookOnixLicense

## Usage

Explore 8 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [BookOnixCollateralText.Licenses](/api/workflows/officeimo-workflows-bookonixcollateraltext/#property-licenses)
- Method [BookOnixLicense.<Clone>$](/api/workflows/officeimo-workflows-bookonixlicense/#method-clone)
- Property [BookOnixResourceVersion.Licenses](/api/workflows/officeimo-workflows-bookonixresourceversion/#property-licenses)

### Accepted by parameters 5

- Method [BookOnixLicense.Equals](/api/workflows/officeimo-workflows-bookonixlicense/#method-equals-bookonixlicense) parameter `other`
- Method [BookOnixLicense.op_Equality](/api/workflows/officeimo-workflows-bookonixlicense/#method-op-equality-bookonixlicense-bookonixlicense) parameter `left`
- Method [BookOnixLicense.op_Equality](/api/workflows/officeimo-workflows-bookonixlicense/#method-op-equality-bookonixlicense-bookonixlicense) parameter `right`
- Method [BookOnixLicense.op_Inequality](/api/workflows/officeimo-workflows-bookonixlicense/#method-op-inequality-bookonixlicense-bookonixlicense) parameter `left`
- Method [BookOnixLicense.op_Inequality](/api/workflows/officeimo-workflows-bookonixlicense/#method-op-inequality-bookonixlicense-bookonixlicense) parameter `right`

Filter members 

Show inherited

## Constructors

`public BookOnixLicense()` [#](#constructor-ctor)

[BookOnixLicense.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixLicense.cs#L32)

`Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)`

## Methods

`public BookOnixLicense <Clone>$()` [#](#method-clone)

Returns

`BookOnixLicense`

Equals 2 overloads

`public override bool Equals(object? obj)` [#](#method-equals-object)

Parameters

**obj object? required**

Returns

`bool`

`public bool Equals(BookOnixLicense? other)` [#](#method-equals-bookonixlicense)

Parameters

**other BookOnixLicense? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Returns

`int`

`public static bool op_Equality(BookOnixLicense? left, BookOnixLicense? right)` [#](#method-op-equality-bookonixlicense-bookonixlicense)

Parameters

**left BookOnixLicense? required**

**right BookOnixLicense? required**

Returns

`bool`

`public static bool op_Inequality(BookOnixLicense? left, BookOnixLicense? right)` [#](#method-op-inequality-bookonixlicense-bookonixlicense)

Parameters

**left BookOnixLicense? required**

**right BookOnixLicense? required**

Returns

`bool`

`public override string ToString()` [#](#method-tostring)

Returns

`string`

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public IReadOnlyList<BookOnixLicenseName> Names { get; init; }` [#](#property-names)

[BookOnixLicense.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixLicense.cs#L30)

One to 16 plain-text names, at most 100 UTF-16 code units each. Repeated names require distinct explicit languages.

`public IReadOnlyList<BookOnixLicenseExpression> Expressions { get; init; }` [#](#property-expressions)

[BookOnixLicense.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixLicense.cs#L32)

Up to 16 distinct format/link pairs. Each link uses the existing 4096-character ONIX field bound.

`public DateTime? ValidFrom { get; init; }` [#](#property-validfrom)

[BookOnixLicense.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixLicense.cs#L34)

Optional inclusive first effective date (role 14). Time of day is ignored during export.

`public DateTime? ValidUntil { get; init; }` [#](#property-validuntil)

[BookOnixLicense.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Workflows/Publishing/BookOnixLicense.cs#L36)

Optional inclusive last effective date (role 15). Must not precede ValidFrom. Time of day is ignored during export.

<!-- PowerForge markdown artifact sha256:26D908C846D9348C72F4DDE691BF24D396F87A717272421CEC3E76C8DA733FBF -->
