PartCreationPolicyConstraint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |