DiscoveredParts.ThrowOnErrors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the discovered parts if no errors occurred, otherwise throws an exception describing any discovery failures.
public Microsoft.VisualStudio.Composition.DiscoveredParts ThrowOnErrors ();
member this.ThrowOnErrors : unit -> Microsoft.VisualStudio.Composition.DiscoveredParts
Public Function ThrowOnErrors () As DiscoveredParts
Returns
This discovery result.
Exceptions
Thrown if DiscoveryErrors is non-empty.
Remarks
This method returns this
so that it may be used in a 'fluent API' expression.