EventSource.ConstructionException 属性

定义

获取在事件源的构造过程中引发的任何异常。

public:
 property Exception ^ ConstructionException { Exception ^ get(); };
public Exception ConstructionException { get; }
public Exception? ConstructionException { get; }
member this.ConstructionException : Exception
Public ReadOnly Property ConstructionException As Exception

属性值

在事件源的构造过程中引发的异常;如果没有引发异常,则为 null

注解

EventSource 构造函数不会引发异常。 相反,引发的任何异常都会分配给 属性, ConstructionException 并由 方法记录 Trace.WriteLine

适用于