Table of Contents

Class PartDiscoveryException

Namespace
Microsoft.VisualStudio.Composition
Assembly
Microsoft.VisualStudio.Composition.dll

An exception that may be thrown during MEF part discovery.

[Serializable]
public class PartDiscoveryException : Exception, ISerializable
Inheritance
PartDiscoveryException
Implements
Inherited Members

Constructors

PartDiscoveryException()

Initializes a new instance of the PartDiscoveryException class.

public PartDiscoveryException()

PartDiscoveryException(SerializationInfo, StreamingContext)

Initializes a new instance of the PartDiscoveryException class.

protected PartDiscoveryException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

PartDiscoveryException(string?)

Initializes a new instance of the PartDiscoveryException class.

public PartDiscoveryException(string? message)

Parameters

message string

PartDiscoveryException(string?, Exception?)

Initializes a new instance of the PartDiscoveryException class.

public PartDiscoveryException(string? message, Exception? innerException)

Parameters

message string
innerException Exception

Properties

AssemblyPath

Gets or sets the path to the assembly involved in the failure.

public string? AssemblyPath { get; set; }

Property Value

string

ScannedType

Gets or sets the type where .NET Reflection failed.

public Type? ScannedType { get; set; }

Property Value

Type

Methods

GetObjectData(SerializationInfo, StreamingContext)

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext