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
store
Type: Microsoft.VisualStudio.Modeling.StoreThe in-memory store.
propertyInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.AssociatedPropertyInfoThe properties for the shape.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.