Show / Hide Table of Contents

Class ContentFileDigest

An implementation for IContentFileDigest for an update content file.

Inheritance
System.Object
ContentFileDigest
Implements
IContentFileDigest
Namespace: Microsoft.PackageGraph.ObjectModel
Assembly: package-graph-microsoft-update.dll
Syntax
public class ContentFileDigest : IContentFileDigest

Constructors

| Improve this Doc View Source

ContentFileDigest(String, String)

Creates update content digest from a hash algorithm and value

Declaration
public ContentFileDigest(string algorithm, string digestBase64)
Parameters
Type Name Description
System.String algorithm

Algorithm used to generate the digest

System.String digestBase64

Digest value as base64 string

Properties

| Improve this Doc View Source

Algorithm

Gets the digest algorithm used

Declaration
[JsonProperty]
public string Algorithm { get; }
Property Value
Type Description
System.String

Digest algorithm name

| Improve this Doc View Source

DigestBase64

Gets the base64 encoded digest

Declaration
[JsonProperty]
public string DigestBase64 { get; }
Property Value
Type Description
System.String

Base64 encoded string

| Improve this Doc View Source

HexString

Gets the HEX string representation of the digest

Declaration
public string HexString { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Equals(Object)

Equality override between two content digest objects.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

Other digest

Returns
Type Description
System.Boolean

True if algorigthms and values match for the two digests

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Override for getting the object's hash code

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Int hash code

Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

ToString()

String formatting override.

Declaration
public override string ToString()
Returns
Type Description
System.String

String formatted object as hash_algorithm:hex_value

Overrides
System.Object.ToString()

Implements

IContentFileDigest
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX