IPexMethodCallChoiceSession.ChooseException Method

Definition

Overloads

ChooseException()

Returns an exception (not null)

ChooseException(Boolean, Type[])

Returns an exception that has one of the specified types

ChooseException()

Returns an exception (not null)

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

Returns

Applies to

ChooseException(Boolean, Type[])

Returns an exception that has one of the specified types

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

Parameters

allowSubtypes
Boolean

if set to true [allow subtypes].

exceptionTypes
Type[]

The exception types.

Returns

Applies to