Show / Hide Table of Contents

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 Source

FromIndexedPackageSource(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

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