Expression.Throw Method (Expression, Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a UnaryExpression that represents a throwing of an exception with a given type.
Assembly: System.Core (in System.Core.dll)
'Declaration Public Shared Function Throw ( _ value As Expression, _ type As Type _ ) As UnaryExpression
Parameters
- value
- Type: System.Linq.Expressions.Expression
An Expression.
- type
- Type: System.Type
The new Type of the expression.
Return Value
Type: System.Linq.Expressions.UnaryExpressionA UnaryExpression that represents the exception.
Show: