GetTypeRestriction Method
Collapse the table of content
Expand the table of content

BindingRestrictions.GetTypeRestriction Method

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

Creates the binding restriction that check the expression for runtime type identity.

Namespace:  System.Dynamic
Assembly:  System.Core (in System.Core.dll)

public static BindingRestrictions GetTypeRestriction(
	Expression expression,
	Type type
)

Parameters

expression
Type: System.Linq.Expressions.Expression
The expression to test.
type
Type: System.Type
The exact type to test.

Return Value

Type: System.Dynamic.BindingRestrictions
The new binding restrictions.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft