# AdfDestinationPolicy

Caller-defined node and mark support for a named destination product and version.

Class 

`OfficeIMO.Adf`

**Namespace**

`OfficeIMO.Adf`

**Assembly**

`OfficeIMO.Adf`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[AdfDestinationPolicy.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfDestinationPolicy.cs#L18)

**Modifiers**

sealed

Caller-defined node and mark support for a named destination product and version.

## Inheritance

- object
- AdfDestinationPolicy

## Remarks

This policy restricts the selected structural or full-schema contract; it does not replace it. A null list imposes no restriction for that category. An empty list permits none. The node list applies to content nodes, including nested content, rather than the document root. Lists are copied at construction. Validation does not alter the document or contact the destination.

## Usage

Explore 1 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 1

- Property [AdfValidationOptions.DestinationPolicy](/api/adf/officeimo-adf-adfvalidationoptions/#property-destinationpolicy)

Filter members 

Show inherited

## Constructors

`public AdfDestinationPolicy(string name, IEnumerable<string>? allowedNodeTypes = null, IEnumerable<string>? allowedMarkTypes = null)` [#](#constructor-ctor-string-collections-generic-ienumerable-system-string-collections-generic-ienumerable-system-string)

[AdfDestinationPolicy.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfDestinationPolicy.cs#L18)

Creates a destination policy from the supported content node and mark type names.

Parameters

**name string required**

Caller-owned product/version label, such as Jira Cloud with a qualification date.

**allowedNodeTypes System.Collections.Generic.IEnumerable<string>? = null optional**

Supported content node types, compared case-sensitively, or null to allow any type.

**allowedMarkTypes System.Collections.Generic.IEnumerable<string>? = null optional**

Supported mark types, compared case-sensitively, or null to allow any type.

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[AdfDestinationPolicy.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfDestinationPolicy.cs#L26)

Gets the caller-owned destination product/version label used in diagnostics.

`public IReadOnlyList<string>? AllowedNodeTypes { get; }` [#](#property-allowednodetypes)

[AdfDestinationPolicy.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfDestinationPolicy.cs#L28)

Gets the immutable supported content node names, or null when nodes are unrestricted.

`public IReadOnlyList<string>? AllowedMarkTypes { get; }` [#](#property-allowedmarktypes)

[AdfDestinationPolicy.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Adf/AdfDestinationPolicy.cs#L30)

Gets the immutable supported mark names, or null when marks are unrestricted.

<!-- PowerForge markdown artifact sha256:6AF89796556420F64B12D2B4E51420134EB1405670E3F23BC7C696ABE0694C85 -->
