Show / Hide Table of Contents

Class UpdateFileUrl

Represents source information for an update file.

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

Constructors

| Improve this Doc View Source

UpdateFileUrl(String, String, String)

Instantiate a new update file URL using the specified attributes

Declaration
public UpdateFileUrl(string digest, string muUrl, string ussUrl)
Parameters
Type Name Description
System.String digest

File digest in base64 format

System.String muUrl

The MU URL.

System.String ussUrl

The USS URL.

Properties

| Improve this Doc View Source

DigestBase64

Gets the digest of the file content

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

SHA256 digest, base64 encoded string.

| Improve this Doc View Source

MuUrl

Gets the Microsoft Update URL to the file.

This property is set if the update containing this file was queries from the official Microsoft upstream server.

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

URL string

| Improve this Doc View Source

UssUrl

Gets the upstream server URL to the file.

This property is set if the update containing his file was queries from a WSUS upstream server.

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

URL string

Methods

| Improve this Doc View Source

CompareTo(Object)

Checks if two file URLs point to the same content.

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
System.Object obj

The other update content URL

Returns
Type Description
System.Int32

True if both URLs point to the same content (by hash), false otherwise

| Improve this Doc View Source

Equals(Object)

Override equality comparison. Two UpdateFileUrl are equal if they have the same content hash.

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

The other UpdateFileUrl

Returns
Type Description
System.Boolean

True if the two UpdateFileUrl have the same content hash, false otherwise.

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

GetHashCode()

Returns a hash code based on the content hash.

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

Hash code

Overrides
System.Object.GetHashCode()

Operators

| Improve this Doc View Source

Equality(UpdateFileUrl, UpdateFileUrl)

Override equality operator to match Equals method.

Declaration
public static bool operator ==(UpdateFileUrl lhs, UpdateFileUrl rhs)
Parameters
Type Name Description
UpdateFileUrl lhs

Left UpdateFileUrl

UpdateFileUrl rhs

Right UpdateFileUrl

Returns
Type Description
System.Boolean

True if the two UpdateFileUrl have the same content hash, false otherwise

| Improve this Doc View Source

Inequality(UpdateFileUrl, UpdateFileUrl)

Override inequality operator to match Equals method

Declaration
public static bool operator !=(UpdateFileUrl lhs, UpdateFileUrl rhs)
Parameters
Type Name Description
UpdateFileUrl lhs

Left UpdateFileUrl

UpdateFileUrl rhs

Right UpdateFileUrl

Returns
Type Description
System.Boolean

False if the two UpdateFileUrl have the same content hash, true otherwise

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