Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeContentSafetyFinding

OfficeIMO.ContentSafety

Namespace
OfficeIMO.ContentSafety
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

One exact concealed-content or machine-only-content finding.

Inheritance

  • object
  • OfficeContentSafetyFinding

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.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public OfficeContentSafetyFinding(string id, string format, OfficeContentConcealmentKind kind, OfficeContentSafetyRisk risk, string location, string evidence, string textPreview, int textLength, string contentHash, bool isInstructionLike, IReadOnlyList<string>? instructionSignals = null, OfficeContentCleanupCapability cleanupCapability = ReportOnly, int? sourceTextOffset = null, int? sourceTextLength = null) #

Creates an immutable content-safety finding.

Parameters

id string required
format string required
kind OfficeIMO.ContentSafety.OfficeContentConcealmentKind required
risk OfficeIMO.ContentSafety.OfficeContentSafetyRisk required
location string required
evidence string required
textPreview string required
textLength int required
contentHash string required
isInstructionLike bool required
instructionSignals System.Collections.Generic.IReadOnlyList<string>? = null optional
cleanupCapability OfficeIMO.ContentSafety.OfficeContentCleanupCapability = ReportOnly optional
sourceTextOffset int? = null optional
sourceTextLength int? = null optional

Properties

public string Id { get; } #

Gets a deterministic id bound to the format, location, mechanism, and exact content hash.

public string Format { get; } #

Gets the adapter format name.

public OfficeContentConcealmentKind Kind { get; } #

Gets the exact concealment mechanism.

public OfficeContentSafetyRisk Risk { get; } #

Gets the interpretation risk.

public string Location { get; } #

Gets the format-native logical location.

public string Evidence { get; } #

Gets bounded, adapter-produced evidence explaining why the content is concealed.

public string TextPreview { get; } #

Gets a bounded, control-safe preview. This is never used as a mutation locator.

public int TextLength { get; } #

Gets the original UTF-16 text length.

public string ContentHash { get; } #

Gets the SHA-256 hash of the exact text payload.

public bool IsInstructionLike { get; } #

Gets whether bounded heuristics found instruction-like language in concealed content.

public IReadOnlyList<string> InstructionSignals { get; } #

Gets the exact heuristic signal identifiers that were observed.

public OfficeContentCleanupCapability CleanupCapability { get; } #

Gets whether the owning adapter can safely remove this exact finding.

public int? SourceTextOffset { get; } #

Gets the exact UTF-16 offset within the reported native text surface when this is a Unicode finding.

public int? SourceTextLength { get; } #

Gets the exact UTF-16 length within the reported native text surface when this is a Unicode finding.