BindingRestrictions.GetInstanceRestriction Method (Expression, Object)

 

Creates the binding restriction that checks the expression for object instance identity.

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

public static BindingRestrictions GetInstanceRestriction(
	Expression expression,
	object instance
)

Parameters

expression
Type: System.Linq.Expressions.Expression

The expression to test.

instance
Type: System.Object

The exact object instance 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: