Share via


PartCreationPolicyConstraint Class

Definition

A constraint that may be included in an ImportDefinition that only matches exports whose parts have a compatible CreationPolicy.

public class PartCreationPolicyConstraint : IEquatable<Microsoft.VisualStudio.Composition.IImportSatisfiabilityConstraint>, Microsoft.VisualStudio.Composition.IImportSatisfiabilityConstraint
type PartCreationPolicyConstraint = class
    interface IImportSatisfiabilityConstraint
    interface IEquatable<IImportSatisfiabilityConstraint>
Public Class PartCreationPolicyConstraint
Implements IEquatable(Of IImportSatisfiabilityConstraint), IImportSatisfiabilityConstraint
Inheritance
PartCreationPolicyConstraint
Implements

Fields

NonSharedPartRequired

The constraint to include in the ImportDefinition when a non-shared part is required.

SharedPartRequired

The constraint to include in the ImportDefinition when a shared part is required.

Properties

RequiredCreationPolicy

Methods

Equals(IImportSatisfiabilityConstraint)
GetExportMetadata(CreationPolicy)

Gets a dictionary of metadata to include in an ExportDefinition to signify the exporting part's CreationPolicy.

GetRequiredCreationPolicyConstraint(CreationPolicy)
GetRequiredCreationPolicyConstraints(CreationPolicy)

Creates a set of constraints to apply to an import given its required part creation policy.

IsNonSharedInstanceRequired(ImportDefinition)
IsSatisfiedBy(ExportDefinition)
ToString(TextWriter)

Applies to