Class
HtmlCapabilityGalleryArtifact
OfficeIMO.Html
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.
Returned or exposed by 4
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
- Stable artifact identifier within the scenario.
- kind string
- Artifact kind, such as input-html, docx, or roundtrip-html.
- path string
- Artifact file path.
- mediaType string
- Artifact media type.
- length long
- Artifact length in bytes.
- sha256 string
- 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
- Stable artifact identifier within the scenario.
- kind string
- Artifact kind, such as input-html, docx, or roundtrip-html.
- path string
- Artifact file path.
- mediaType string
- Artifact media type.
public HtmlCapabilityGalleryArtifact WithEvidence(HtmlCapabilityGalleryArtifactEvidence evidence) #Returns a descriptor with immutable artifact observations attached.
Parameters
- evidence OfficeIMO.Html.HtmlCapabilityGalleryArtifactEvidence
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
- Stable artifact identifier within the scenario.
- kind string
- Artifact kind, such as semantic-html or manifest-json.
- path string
- Artifact file path.
- mediaType string
- Artifact media type.
- content string
- Text content to write.
Inherited Methods
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 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.