11 references to ZeroOrOne
System.ComponentModel.Composition (11)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
605
/// <see cref="ImportCardinality.
ZeroOrOne
"/> or
610
return cardinality == ImportCardinality.
ZeroOrOne
|| cardinality == ImportCardinality.ExactlyOne;
System\ComponentModel\Composition\Hosting\ExportProvider.cs (5)
58
/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.
ZeroOrOne
"/> or
92
/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.
ZeroOrOne
"/> or
133
/// <see cref="ImportCardinality.
ZeroOrOne
"/> or <see cref="ImportCardinality.ZeroOrMore"/> and
136
/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.
ZeroOrOne
"/> or
221
definition.Cardinality == ImportCardinality.
ZeroOrOne
)
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
628
return GetExportedValueCore<T>(contractName, ImportCardinality.
ZeroOrOne
);
System\ComponentModel\Composition\ImportAttribute.cs (1)
188
return ImportCardinality.
ZeroOrOne
;
System\ComponentModel\Composition\Primitives\ComposablePart.cs (1)
193
/// <see cref="ImportDefinition.Cardinality"/> is <see cref="ImportCardinality.
ZeroOrOne
"/> or
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
102
(cardinality != ImportCardinality.
ZeroOrOne
)