Table of Contents

Method StopEnforcing

Namespace
DocWright.Cryptography
Assembly
DocWright.Cryptography.dll

StopEnforcing(DocumentProtection)

Stops protection as Word's Stop Protection does (Phase 157, WQ-0130): nothing of w:documentProtection is left, the password material included. The write-protection recommendation is left as it is. Whether the caller may stop it is the caller's to decide: VerifyDocumentProtection(DocumentProtection, string, ResourceLimits?) checks a password.

public static void StopEnforcing(DocumentProtection protection)

Parameters

protection DocumentProtection

The protection settings to change.

Exceptions

ArgumentNullException

protection is null.