共用方式為


CreateReferenceRelationship Class

ConnectionBuilder class to provide logic for constructing connections between elements.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.DslDefinition.CreateReferenceRelationship

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

Syntax

'宣告
Public NotInheritable Class CreateReferenceRelationship
public static class CreateReferenceRelationship
public ref class CreateReferenceRelationship abstract sealed
[<AbstractClass>]
[<Sealed>]
type CreateReferenceRelationship =  class end
public final class CreateReferenceRelationship

The CreateReferenceRelationship type exposes the following members.

Methods

  Name Description
Public methodStatic member CanAcceptSource Test whether a given model element is acceptable to this ConnectionBuilder as the source of a connection.
Public methodStatic member CanAcceptSourceAndTarget Test whether a given pair of model elements are acceptable to this ConnectionBuilder as the source and target of a connection
Public methodStatic member CanAcceptTarget Test whether a given model element is acceptable to this ConnectionBuilder as the target of a connection.
Public methodStatic member Connect Make a connection between the given pair of source and target elements

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.DslDefinition Namespace