# PdfOperationResult<T>

Result returned by preflight-gated PDF operations.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfOperationResult.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L58)

**Implements**

`IOfficeResult<T>` `IOfficeResult`

**Modifiers**

sealed

Result returned by preflight-gated PDF operations.

## Inheritance

- object
- PdfOperationResult<T>

## Type Parameters

**T**

Operation value type.

Filter members 

Show inherited

## Methods

`public T RequireValue()` [#](#method-requirevalue)

[PdfOperationResult.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L58)

Returns the operation value or throws with diagnostics when the operation failed.

Returns

`T`

## 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 OperationName { get; }` [#](#property-operationname)

[PdfOperationResult.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L28)

Human-readable operation name.

`public PdfPreflightCapability Capability { get; }` [#](#property-capability)

[PdfOperationResult.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L31)

Preflight capability required by the operation.

`public PdfDocumentPreflight Preflight { get; }` [#](#property-preflight)

[PdfOperationResult.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L34)

Preflight report used before attempting the operation.

`public PdfMutationPlan? MutationPlan { get; }` [#](#property-mutationplan)

[PdfOperationResult.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L37)

Mutation plan that selected the execution path, when this was an existing-document mutation.

`public bool CanAttempt { get; }` [#](#property-canattempt)

[PdfOperationResult.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L40)

True when preflight allowed the operation to be attempted.

`public bool Succeeded { get; }` [#](#property-succeeded)

[PdfOperationResult.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L43)

True when the operation completed and produced a value.

`public T? Value { get; }` [#](#property-value)

[PdfOperationResult.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L46)

Operation value when the operation completed.

`public IReadOnlyList<string> Diagnostics { get; }` [#](#property-diagnostics)

[PdfOperationResult.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L49)

Human-readable diagnostics explaining a blocked or failed operation.

`public Exception? Exception { get; }` [#](#property-exception)

[PdfOperationResult.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Core/PdfOperationResult.cs#L52)

Exception captured from an attempted operation, when available.

<!-- PowerForge markdown artifact sha256:10DFE76C704E6DB3B197F35095E9247DC2239A5FD6BF3543BBEBDC897EBA27AA -->
