ShapeElement.AssociateValueWith Method (Store, AssociatedPropertyInfo)

Associates the resource for the shape with an in-memory store property that is assigned to the shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
Public Shared Sub AssociateValueWith ( _
    store As Store, _
    propertyInfo As AssociatedPropertyInfo _
)
'使用
Dim store As Store
Dim propertyInfo As AssociatedPropertyInfo

ShapeElement.AssociateValueWith(store, propertyInfo)
public static void AssociateValueWith(
    Store store,
    AssociatedPropertyInfo propertyInfo
)
public:
static void AssociateValueWith(
    Store^ store, 
    AssociatedPropertyInfo^ propertyInfo
)
public static function AssociateValueWith(
    store : Store, 
    propertyInfo : AssociatedPropertyInfo
)

Parameters

Remarks

When the resources for a shape are associated with an in-memory store property, the shape is updated when the in-memory store is updated.

Permissions

See Also

Reference

ShapeElement Class

ShapeElement Members

AssociateValueWith Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace