Class UpdateFileUrl
Represents source information for an update file.
Inheritance
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Metadata.Content
Assembly: package-graph-microsoft-update.dll
Syntax
public class UpdateFileUrl
Constructors
| Improve this Doc View SourceUpdateFileUrl(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 SourceDigestBase64
Gets the digest of the file content
Declaration
[JsonProperty]
public string DigestBase64 { get; }
Property Value
Type | Description |
---|---|
System.String | SHA256 digest, base64 encoded string. |
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 |
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 SourceCompareTo(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 |
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
GetHashCode()
Returns a hash code based on the content hash.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
Operators
| Improve this Doc View SourceEquality(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 |
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 |