Udostępnij za pośrednictwem


ShapeField.AssociateValueWith Method

Definition

Overloads

AssociateValueWith(Store, AssociatedPropertyInfo)

Associates this shape field's value with a domain property on the ShapeElement. Use this method when the domain property is a proxy for another property.

AssociateValueWith(Store, Guid)

Associates this shape field's value with a domain property on the ShapeElement. Use this method when the domain property is a proxy for another property.

AssociateValueWith(Store, Guid, AssociatedPropertyInfo)

Associates this shape field's value with a domain property on the ShapeElement, when the shape is mapped to an instance of the given domain class. Use this method when there are multiple domain classes that this shape field can be mapped to.

AssociateValueWith(Store, AssociatedPropertyInfo)

Associates this shape field's value with a domain property on the ShapeElement. Use this method when the domain property is a proxy for another property.

public:
 void AssociateValueWith(Microsoft::VisualStudio::Modeling::Store ^ store, Microsoft::VisualStudio::Modeling::Diagrams::AssociatedPropertyInfo ^ propertyInfo);
public void AssociateValueWith (Microsoft.VisualStudio.Modeling.Store store, Microsoft.VisualStudio.Modeling.Diagrams.AssociatedPropertyInfo propertyInfo);
member this.AssociateValueWith : Microsoft.VisualStudio.Modeling.Store * Microsoft.VisualStudio.Modeling.Diagrams.AssociatedPropertyInfo -> unit
Public Sub AssociateValueWith (store As Store, propertyInfo As AssociatedPropertyInfo)

Parameters

store
Store
propertyInfo
AssociatedPropertyInfo

Provides information about the property association.

Applies to

AssociateValueWith(Store, Guid)

Associates this shape field's value with a domain property on the ShapeElement. Use this method when the domain property is a proxy for another property.

public:
 void AssociateValueWith(Microsoft::VisualStudio::Modeling::Store ^ store, Guid propertyId);
public void AssociateValueWith (Microsoft.VisualStudio.Modeling.Store store, Guid propertyId);
member this.AssociateValueWith : Microsoft.VisualStudio.Modeling.Store * Guid -> unit
Public Sub AssociateValueWith (store As Store, propertyId As Guid)

Parameters

store
Store
propertyId
Guid

Guid identifying the property to associate.

Applies to

AssociateValueWith(Store, Guid, AssociatedPropertyInfo)

Associates this shape field's value with a domain property on the ShapeElement, when the shape is mapped to an instance of the given domain class. Use this method when there are multiple domain classes that this shape field can be mapped to.

public:
 void AssociateValueWith(Microsoft::VisualStudio::Modeling::Store ^ store, Guid domainClassId, Microsoft::VisualStudio::Modeling::Diagrams::AssociatedPropertyInfo ^ propertyInfo);
public void AssociateValueWith (Microsoft.VisualStudio.Modeling.Store store, Guid domainClassId, Microsoft.VisualStudio.Modeling.Diagrams.AssociatedPropertyInfo propertyInfo);
member this.AssociateValueWith : Microsoft.VisualStudio.Modeling.Store * Guid * Microsoft.VisualStudio.Modeling.Diagrams.AssociatedPropertyInfo -> unit
Public Sub AssociateValueWith (store As Store, domainClassId As Guid, propertyInfo As AssociatedPropertyInfo)

Parameters

store
Store
domainClassId
Guid

Domain class id.

propertyInfo
AssociatedPropertyInfo

Provides information about the property association.

Applies to