PdfFieldLock Class

The fields a signature locks (ISO 32000-2, 12.8.2.4, the FieldMDP transform): their values cannot change after the signature without invalidating it.

public sealed class PdfFieldLock

Constructors

NameDescription
PdfFieldLock(PdfFieldLockAction, IEnumerable<string>?)Initializes a new instance of the PdfFieldLock class.

PdfFieldLock(PdfFieldLockAction, IEnumerable<string>?)

PdfFieldLock.cs

Initializes a new instance of the PdfFieldLock class.

public PdfFieldLock(PdfFieldLockAction action, IEnumerable<string>? fields = null)

Parameters

action PdfFieldLockAction
The fields the lock applies to.
fields IEnumerable<string>?
The fully qualified names of the fields of PdfFieldLockAction.Include and PdfFieldLockAction.Exclude.

Exceptions

ArgumentException
The action is PdfFieldLockAction.Include or PdfFieldLockAction.Exclude, and no field is given.

Properties

NameDescription
ActionGets the fields the lock applies to.
FieldsGets the fully qualified names of the fields that are included or excluded; empty for PdfFieldLockAction.All.

Gets the fields the lock applies to.

public PdfFieldLockAction Action { get; }

Property value

PdfFieldLockAction

Gets the fully qualified names of the fields that are included or excluded; empty for PdfFieldLockAction.All.

public IReadOnlyList<string> Fields { get; }

Property value

IReadOnlyList<string>