IPexMethodCallChoiceSession.ChooseException 方法

定义

重载

ChooseException()

返回一个异常(不为 null)

ChooseException(Boolean, Type[])

返回一个具有指定类型之一的异常

ChooseException()

返回一个异常(不为 null)

public:
 Exception ^ ChooseException();
public Exception ChooseException ();
abstract member ChooseException : unit -> Exception
Public Function ChooseException () As Exception

返回

Exception

适用于

ChooseException(Boolean, Type[])

返回一个具有指定类型之一的异常

public:
 Exception ^ ChooseException(bool allowSubtypes, ... cli::array <Type ^> ^ exceptionTypes);
public Exception ChooseException (bool allowSubtypes, params Type[] exceptionTypes);
abstract member ChooseException : bool * Type[] -> Exception
Public Function ChooseException (allowSubtypes As Boolean, ParamArray exceptionTypes As Type()) As Exception

参数

allowSubtypes
Boolean

如果设置为 true [允许子类型]。

exceptionTypes
Type[]

异常类型。

返回

Exception

适用于