BindingRestrictions::GetTypeRestriction Method (Expression^, Type^)

 

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: