ImportDefinition.Cardinality Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the cardinality of the exports required by the import definition.

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

Syntax

'Declaration
Public Overridable ReadOnly Property Cardinality As ImportCardinality
public virtual ImportCardinality Cardinality { get; }

Property Value

Type: System.ComponentModel.Composition.Primitives.ImportCardinality
One of the enumeration values that indicates the cardinality of the Export objects required by the ImportDefinition. The default is ExactlyOne.

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.