Export (0) Print
Expand All

BindingRestrictions.GetTypeRestriction Method

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

Namespace:  System.Dynamic
Assemblies:   System.Core (in System.Core.dll)
  System.Dynamic.Runtime (in System.Dynamic.Runtime.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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft