Throw Method (Expression, Type)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Linq.Expressions
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.UnaryExpression
A UnaryExpression that represents the exception.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft