Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordContentControlFormValidationResult

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

Describes the content-control form keys and validation issues found for a supplied form map.

Inheritance

  • object
  • WordContentControlFormValidationResult

Usage

Explore 2 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.

Methods

public WordContentControlFormValidationResult EnsureValid() #

Throws when validation issues were found, otherwise returns this result.

public string ToJson() #

Serializes this validation result to deterministic JSON for CI, service logs, and thin wrapper surfaces.

Returns

string
public string ToMarkdown() #

Renders this validation result as Markdown suitable for review notes and automation artifacts.

Returns

string

Properties

public IReadOnlyList<string> ExpectedKeys { get; } #

Unique content-control keys found in the document.

public IReadOnlyList<string> SuppliedKeys { get; } #

Unique keys supplied by the caller.

public IReadOnlyList<WordContentControlFormIssue> Issues { get; } #

Validation issues found before filling content controls.

public bool IsValid { get; } #

True when the supplied values can be applied without validation issues.