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.
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.LabelExpressionA LabelExpression with the given default value.
Show: