Show / Hide Table of Contents

Class UpdateFile

Represents a content file for an update.

Inheritance
System.Object
UpdateFile
Implements
IContentFile
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Metadata.Content
Assembly: package-graph-microsoft-update.dll
Syntax
public class UpdateFile : IContentFile

Constructors

| Improve this Doc View Source

UpdateFile()

Create a new UpdateFile

Declaration
[JsonConstructor]
public UpdateFile()

Properties

| Improve this Doc View Source

Digest

Gets the primary digest of a content file.

Declaration
[JsonIgnore]
public IContentFileDigest Digest { get; }
Property Value
Type Description
IContentFileDigest

Content file digest.

| Improve this Doc View Source

Digests

Gets the list of file digests. Multiple hashing algorithms might be used.

Declaration
[JsonProperty]
public List<ContentFileDigest> Digests { get; set; }
Property Value
Type Description
System.Collections.Generic.List<ContentFileDigest>

List of file digests, one per algorithm.

| Improve this Doc View Source

FileName

Gets the name of the file

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

File name

| Improve this Doc View Source

ModifiedDate

Gets the last modified timestamp for the file

Declaration
[JsonProperty]
public DateTime ModifiedDate { get; set; }
Property Value
Type Description
System.DateTime

Last modified DateTime

| Improve this Doc View Source

PatchingType

Gets the type of patching this file provides

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

Patchin type string

| Improve this Doc View Source

Size

Ges the file size, in bytes.

Declaration
[JsonProperty]
public ulong Size { get; set; }
Property Value
Type Description
System.UInt64

File size

| Improve this Doc View Source

Source

Gets the default download URL for a file.

Declaration
[JsonIgnore]
public string Source { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Urls

Gets the list of URLs for the file.

Declaration
[JsonProperty]
public List<UpdateFileUrl> Urls { get; set; }
Property Value
Type Description
System.Collections.Generic.List<UpdateFileUrl>

List of URLs.

Methods

| Improve this Doc View Source

Equals(Object)

Override equality method; two UpdateFile are equal if they have the same content hash.

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

Other UpdateFile

Returns
Type Description
System.Boolean

True if the two objects are equal, false otherwise

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

GetHashCode()

Return a hash code based on the hash of the file content.

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

UpdateFile hash code

Overrides
System.Object.GetHashCode()

Implements

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