ShapeElement.AssociateValueWith Method (Store, Guid)

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, _
    domainPropertyId As Guid _
)
'使用
Dim store As Store
Dim domainPropertyId As Guid

ShapeElement.AssociateValueWith(store, domainPropertyId)
public static void AssociateValueWith(
    Store store,
    Guid domainPropertyId
)
public:
static void AssociateValueWith(
    Store^ store, 
    Guid domainPropertyId
)
public static function AssociateValueWith(
    store : Store, 
    domainPropertyId : Guid
)

Parameters

  • domainPropertyId
    Type: System.Guid

    The GUID for the in-memory store that is stored in the shape.

Examples

public static void OnDecoratorsInitialized(object sender, global::System.EventArgs e)
{
DslDiagrams::ShapeElement shape = (DslDiagrams::ShapeElement)sender;
DslDiagrams::AssociatedPropertyInfo propertyInfo;

propertyInfo = new DslDiagrams::AssociatedPropertyInfo(global::Microsoft.Example.ClassDiagrams.Comment.TextDomainPropertyId);
DslDiagrams::ShapeElement.FindDecorator(shape.Decorators, "Comment").AssociateValueWith(shape.Store, propertyInfo);
}

Permissions

See Also

Reference

ShapeElement Class

ShapeElement Members

AssociateValueWith Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace