GetInstanceRestriction Method
Collapse the table of content
Expand the table of content

BindingRestrictions.GetInstanceRestriction 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 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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft