IPexMethodCallChoiceSession.ChooseException 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.
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.