ImportDefinition.Constraint Property

Gets an expression that defines conditions that the import must satisfy to match the import definition.

Namespace:  System.ComponentModel.Composition.Primitives
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property Constraint As Expression(Of Func(Of ExportDefinition, Boolean))
public virtual Expression<Func<ExportDefinition, bool>> Constraint { get; }

Property Value

Type: System.Linq.Expressions.Expression<Func<ExportDefinition, Boolean>>
An expression that contains a Func<T, TResult> object that defines the conditions an Export must satisfy to match the ImportDefinition.

Exceptions

Exception Condition
NotImplementedException

The property was not overridden by a derived class.

Remarks

Overrides of this property should never return nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.