Label Method (LabelTarget, Expression)
Collapse the table of content
Expand the table of content

Expression.Label Method (LabelTarget, Expression)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a LabelExpression representing a label with the given default value.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Shared Function Label ( _
	target As LabelTarget, _
	defaultValue As Expression _
) As LabelExpression

Parameters

target
Type: System.Linq.Expressions.LabelTarget
The LabelTarget which this LabelExpression will be associated with.
defaultValue
Type: System.Linq.Expressions.Expression
The value of this LabelExpression when the label is reached through regular control flow.

Return Value

Type: System.Linq.Expressions.LabelExpression
A LabelExpression with the given default value.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft