# OfficeWorkflowProtectedSource

A source retained by a host that must remain separate from workflow outputs even when it is not executed.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeWorkflowProtectedSource.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowProtectedSource.cs#L8)

**Modifiers**

sealed

A source retained by a host that must remain separate from workflow outputs even when it is not executed.

## Inheritance

- object
- OfficeWorkflowProtectedSource

## 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.

### Accepted by parameters 1

- Method [OfficeWorkflowRunner.RunOcrSessionAsync](/api/workflows/officeimo-workflows-officeworkflowrunner/#method-runocrsessionasync-collections-generic-ienumerable-officeimo-workflows-officeocrsessionrequest-officeimo-ocr-iocrengine-iprogress-officeimo-workflows-officeworkflowprogress-iprogress-officeimo-workflows-officeocrsessionresult-threading-cancellationtoken-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-officeimo-workflows-officeworkflowprotectedsource) parameter `protectedInputs`

Filter members 

Show inherited

## Constructors

`public OfficeWorkflowProtectedSource(string location, OfficeWorkflowStreamInput? inputStream = null)` [#](#constructor-ctor-string-officeimo-workflows-officeworkflowstreaminput)

[OfficeWorkflowProtectedSource.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowProtectedSource.cs#L8)

Creates source protection with optional provider access for checking the local file identity.

Parameters

**location string required**

**inputStream OfficeIMO.Workflows.OfficeWorkflowStreamInput? = null optional**

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

[OfficeWorkflowProtectedSource.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowProtectedSource.cs#L13)

Original local path or provider location to protect.

`public OfficeWorkflowStreamInput? InputStream { get; }` [#](#property-inputstream)

[OfficeWorkflowProtectedSource.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowProtectedSource.cs#L15)

Reopenable provider access retained by the host for this source.

<!-- PowerForge markdown artifact sha256:14BA3B9341504177B337EE6590E0B88E699BC4CB484DA441B742ADC3B722D825 -->
