CompositionConfiguration.CompositionErrors 属性

定义

获取创建此配置时检测到的合成错误,该错误导致从支持此配置的目录中删除部件。

public System.Collections.Immutable.IImmutableStack<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ComposedPartDiagnostic>> CompositionErrors { get; }
member this.CompositionErrors : System.Collections.Immutable.IImmutableStack<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Composition.ComposedPartDiagnostic>>
Public ReadOnly Property CompositionErrors As IImmutableStack(Of IReadOnlyCollection(Of ComposedPartDiagnostic))

属性值

注解

错误作为堆栈收集。 最顶层的堆栈元素表示检测到的第一级错误。 当检测到错误并移除部件以实现“稳定组合”时,删除部件和检测其他错误的每个周期都会在堆栈中获取更深的元素。 因此,所有故障的“根本原因”通常位于最顶层的堆栈元素中。

适用于