Documentation
Table of Contents

Method TryGet

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

TryGet(DocumentId, out IDocumentFormat?)

Finds the format registered for id's extension.

public bool TryGet(DocumentId id, out IDocumentFormat? format)

Parameters

id DocumentId

The document.

format IDocumentFormat

The format, when one is registered for the extension; otherwise null.

Returns

bool

True when a format is registered for the extension.

Exceptions

ArgumentException

A default DocumentId, which names no document.