Class PrerequisitesGraph
Models the prerequisite graph for all packages contained within a metadata store
Inheritance
System.Object
PrerequisitesGraph
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Metadata.Prerequisites
Assembly: package-graph-microsoft-update.dll
Syntax
public class PrerequisitesGraph
Methods
| Improve this Doc View SourceFromIndexedPackageSource(IMetadataStore)
Creates a prerequisite graph for all the packages contained in the specified store
Declaration
public static PrerequisitesGraph FromIndexedPackageSource(IMetadataStore source)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetadataStore | source | Package metadata store |
Returns
| Type | Description |
|---|---|
| PrerequisitesGraph |
Exceptions
| Type | Condition |
|---|---|
| System.Exception | If an unknown prerequisite type is encountered |
GetLeafUpdates()
Gets updates that have prerequisites but no other update depends on them
Declaration
public IEnumerable<Guid> GetLeafUpdates()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Guid> | List of GUIDS of leaf updates |
GetNonLeafUpdates()
Gets updates that have prerequisites and also have other updates depend on them
Declaration
public IEnumerable<Guid> GetNonLeafUpdates()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Guid> | List of GUIDS of non leaf updates |
GetRootUpdates()
Get updates with no prerequisites
Declaration
public IEnumerable<Guid> GetRootUpdates()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Guid> | List of GUIDS of root updates |