Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlCapabilityGalleryArtifact

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Describes one artifact emitted by an HTML capability-gallery scenario.

Inheritance

  • object
  • HtmlCapabilityGalleryArtifact

Usage

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

Accepted by parameters 2

Constructors

public HtmlCapabilityGalleryArtifact(string id, string kind, string path, string mediaType, long length, string sha256) #

Creates an artifact descriptor.

Parameters

id string required
Stable artifact identifier within the scenario.
kind string required
Artifact kind, such as input-html, docx, or roundtrip-html.
path string required
Artifact file path.
mediaType string required
Artifact media type.
length long required
Artifact length in bytes.
sha256 string required
Lowercase hexadecimal SHA-256 hash of the artifact bytes.

Methods

public static HtmlCapabilityGalleryArtifact FromFile(string id, string kind, string path, string mediaType) #

Creates an artifact descriptor from an existing file.

Parameters

id string required
Stable artifact identifier within the scenario.
kind string required
Artifact kind, such as input-html, docx, or roundtrip-html.
path string required
Artifact file path.
mediaType string required
Artifact media type.

Returns

HtmlCapabilityGalleryArtifact A descriptor containing file length and SHA-256 hash.
public HtmlCapabilityGalleryArtifact WithEvidence(HtmlCapabilityGalleryArtifactEvidence evidence) #

Returns a descriptor with immutable artifact observations attached.

Parameters

evidence OfficeIMO.Html.HtmlCapabilityGalleryArtifactEvidence required
public static HtmlCapabilityGalleryArtifact WriteTextFile(string id, string kind, string path, string mediaType, string content) #

Writes text content to an artifact file and returns its descriptor.

Parameters

id string required
Stable artifact identifier within the scenario.
kind string required
Artifact kind, such as semantic-html or manifest-json.
path string required
Artifact file path.
mediaType string required
Artifact media type.
content string required
Text content to write.

Returns

HtmlCapabilityGalleryArtifact A descriptor containing file length and SHA-256 hash.

Properties

public string Id { get; } #

Stable artifact identifier within the scenario.

public string Kind { get; } #

Artifact kind, such as input-html, docx, or roundtrip-html.

public string Path { get; } #

Artifact file path.

public string MediaType { get; } #

Artifact media type.

public long Length { get; } #

Artifact length in bytes.

public string Sha256 { get; } #

Lowercase hexadecimal SHA-256 hash of the artifact bytes.

public HtmlCapabilityGalleryArtifactEvidence? Evidence { get; private set; } #

Optional observations captured from the operation that produced these exact bytes.