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)

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.

Exception Condition
NotImplementedException

The property was not overridden by a derived class.

Overrides of this property should never return null.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: