ElementLink クラス

すべてのドメイン リレーションシップの基本クラスです。

継承階層

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.ElementLink
      詳細...

名前空間:  Microsoft.VisualStudio.Modeling
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 内)

構文

'宣言
<SerializableAttribute> _
<DomainObjectIdAttribute("706debaa-dd2d-4293-99af-695aadd36c9a")> _
<DomainRelationshipAttribute(AllowsDuplicates := True)> _
Public MustInherit Class ElementLink _
    Inherits ModelElement
[SerializableAttribute]
[DomainObjectIdAttribute("706debaa-dd2d-4293-99af-695aadd36c9a")]
[DomainRelationshipAttribute(AllowsDuplicates = true)]
public abstract class ElementLink : ModelElement

ElementLink 型で公開されるメンバーは以下のとおりです。

コンストラクター

  名前 説明
プロテクト メソッド ElementLink ElementLink クラスの新しいインスタンスを作成します。

このページのトップへ

プロパティ

  名前 説明
パブリック プロパティ Id 要素の ID を取得します。 (ModelElement から継承されます。)
パブリック プロパティ IsActive IsActive のフラグを取得して、要素がアクティブであるかどうか確認します。 (ModelElement から継承されます。)
パブリック プロパティ IsDeleted IsDeleted のフラグを取得して、要素がモデルから削除されたかどうかを確認します。 (ModelElement から継承されます。)
パブリック プロパティ IsDeleting IsDeleting のフラグを取得して、要素がモデルから削除するかどうかを確認します。 (ModelElement から継承されます。)
パブリック プロパティ LinkedElements この要素リンクによって接続されている要素の読み取り専用コレクションを取得します。
パブリック プロパティ Partition Partition を取得または設定する要素が含まれます。 (ModelElement から継承されます。)
パブリック プロパティ Store Store 要素を含むを取得します。 (ModelElement から継承されます。)

このページのトップへ

メソッド

  名前 説明
プロテクト メソッド CanMerge ソース要素がこの要素に追加できるかどうかを確認します。 (ModelElement から継承されます。)
プロテクト メソッド ChooseMergeTarget(ElementGroup) ターゲット要素を子としてコピーするか、ドラッグ、または作成し、ユーザーがする要素を受け入れるように選択します。 (ModelElement から継承されます。)
プロテクト メソッド ChooseMergeTarget(ElementGroupPrototype) ターゲット要素を子としてコピーするか、ドラッグ、または作成し、ユーザーがする要素を受け入れるように選択します。 (ModelElement から継承されます。)
パブリック メソッド Copy() モデル要素のコピーを作成します。 (ModelElement から継承されます。)
パブリック メソッド Copy(IEnumerable<Guid>) 要素のコピーと子のリンクおよび要素作成します。 (ModelElement から継承されます。)
パブリック メソッド Delete() モデルから要素を削除します。 (ModelElement から継承されます。)
パブリック メソッド Delete(array<Guid[]) モデルから要素を削除します。 (ModelElement から継承されます。)
パブリック メソッド Equals 指定のオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (Object から継承されます。)
プロテクト メソッド Finalize オブジェクトがガベージ コレクションにより収集される前に、そのオブジェクトがリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
パブリック メソッド GetDomainClass この要素のドメインは、最派生クラスを取得します。 (ModelElement から継承されます。)
パブリック メソッド GetDomainRelationship このリンクをインスタンス化するドメイン リレーションシップを取得します。
パブリック メソッド GetHashCode 特定の型のハッシュ関数として機能します。 (Object から継承されます。)
プロテクト メソッド GetRoleCollection<TCollection, TElement>(Guid) リンクされた要素コレクションを取得または作成します (ModelElement から継承されます。)
パブリック メソッド GetType 現在のインスタンスの Type を取得します。 (Object から継承されます。)
プロテクト メソッド MemberwiseClone 現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッド MergeConfigure マージ プロセスがターゲット要素に関連付けられた直後にモデル要素が設定できるようにします。 (ModelElement から継承されます。)
プロテクト メソッド MergeDisconnect ターゲット要素のソース要素を削除します。 (ModelElement から継承されます。)
プロテクト メソッド MergeRelate このターゲット要素で指定されたソースの要素間にリレーションシップを作成します。 (ModelElement から継承されます。)
パブリック メソッド MoveBefore 別の前にこのリンクを移動する要素に接続されているリンクの順序を変更します。
パブリック メソッド MoveToIndex リスト内の指定されたインデックス位置にこのリンクを移動します。
プロテクト メソッド OnCopy この要素を別の要素のコピーとして作成されたときに呼び出されます。 (ModelElement から継承されます。)
プロテクト メソッド OnDeleted この要素がモデルから削除されたときに呼び出されます。 (ModelElement から継承されます。)
プロテクト メソッド OnDeleting この要素が削除されるときに呼び出されます。 (ModelElement から継承されます。)
プロテクト メソッド OnResurrected この要素がモデルに追加されたときに呼び出されます。 (ModelElement から継承されます。)
プロテクト メソッド OnRolePlayerChanged ロール プレーヤー変更されたときに呼び出されます。
プロテクト メソッド OnRolePlayerChanging ロール プレーヤー変更されたときに呼び出されます。
プロテクト メソッド OnRolePlayerPositionChanged ロールの位置が変更されたときに呼び出されます。 (ModelElement から継承されます。)
プロテクト メソッド OnRolePlayerPositionChanging ロール プレーヤーの位置変更するときに呼び出されます。 (ModelElement から継承されます。)
パブリック メソッド ToString 現在のオブジェクトを表す文字列を返します。 (Object から継承されます。)

このページのトップへ

拡張メソッド

  名前 説明
パブリック Extension メソッド AddExtension(Guid) オーバーロードされます。 指定したドメインの型の新しいインスタンスを作成した拡張機能でこの ModelElement を拡張します。InvalidOperationException が要素に既にその型の拡張子を持つ場合、がスローされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド AddExtension(Type) オーバーロードされます。 指定した型の新しいインスタンスを作成した拡張機能でこの ModelElement を拡張します。InvalidOperationException が要素に既にその型の拡張子を持つ場合、がスローされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド AddExtension(DomainClassInfo) オーバーロードされます。 指定したドメインの型の新しいインスタンスを作成した拡張機能でこの ModelElement を拡張します。InvalidOperationException が要素に既にその型の拡張子を持つ場合、がスローされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド AddExtension(ExtensionElement) オーバーロードされます。 特定の拡張子を使ってこの ModelElement を拡張します。InvalidOperationException が要素に既に同じ種類の拡張子を持つ場合、がスローされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド AddExtension<T>() オーバーロードされます。 特定の型の新しいインスタンスを作成した拡張機能でこの ModelElement を拡張します。InvalidOperationException が要素に既に同じ種類の拡張子を持つ場合、がスローされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド CanDelete モデルから要素を削除します。 (ImmutabilityExtensionMethods によって定義されています。)
パブリック Extension メソッド GetAllExtensions この ModelElement に埋め込まれている拡張子の要素の幅の最初にツリーを走査を実行する列挙返します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド GetBaseElement 指定 ModelElement が参加している仮想メルのルートを返します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド GetExtension(Guid) オーバーロードされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド GetExtension(Type) オーバーロードされます。 この ModelElement の拡張機能から指定された型の ExtensionElement を取得します。要素に、こうした拡張子を持つ InvalidOperationException が発生します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド GetExtension(DomainClassInfo) オーバーロードされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド GetExtension<T>() オーバーロードされます。 この ModelElement の拡張機能から指定された型の ExtensionElement を取得します。要素に、こうした拡張子を持つ InvalidOperationException が発生します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド GetLocks この要素のロックのフラグを取得します。これは要素を含むパーティションで有効にしたロックが含まれています。 (ImmutabilityExtensionMethods によって定義されています。)
パブリック Extension メソッド IsExtendedBy(Guid) オーバーロードされます。 この ModelElement が特定の種類の ExtensionElement で現在拡張するかどうかを照会します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド IsExtendedBy(Type) オーバーロードされます。 この ModelElement が特定の種類の ExtensionElement で現在拡張するかどうかを照会します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド IsExtendedBy(DomainClassInfo) オーバーロードされます。 この ModelElement が特定の種類の ExtensionElement で現在拡張するかどうかを照会します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド IsLocked この要素にロックの指定された設定するかどうかをテストします。 (ImmutabilityExtensionMethods によって定義されています。)
パブリック Extension メソッド RemoveExtension(Type) オーバーロードされます。 特定の型であるこの ModelElement の拡張機能を削除します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド RemoveExtension(Guid) オーバーロードされます。 特定の型を指定 ModelElement の拡張機能を削除します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド RemoveExtension(DomainClassInfo) オーバーロードされます。 特定の型を指定 ModelElement の拡張機能を削除します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド RemoveExtension(ExtensionElement) オーバーロードされます。 この ModelElement の拡張機能から指定 ExtensionElement を削除します。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド SetLocks この要素のロック フラグを設定します。 (ImmutabilityExtensionMethods によって定義されています。)
パブリック Extension メソッド TryGetExtension(Guid) オーバーロードされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド TryGetExtension(Type) オーバーロードされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド TryGetExtension(DomainClassInfo) オーバーロードされます。 (ModelElementExtensionMethods によって定義されています。)
パブリック Extension メソッド TryGetExtension<T>() オーバーロードされます。 この ModelElement の拡張機能から指定された型の ExtensionElement を取得します。この要素には、このような拡張子が存在しない結果が null です。 (ModelElementExtensionMethods によって定義されています。)

このページのトップへ

フィールド

  名前 説明
パブリック フィールド静的メンバー DomainClassId ElementLink のドメイン クラスの ID。

このページのトップへ

明示的インターフェイスの実装

  名前 説明
明示的なインターフェイス実装プライベート メソッド IMergeElements.CanMerge この要素は、プロトタイプのコンテンツとマージできる場合は true を返します。 (ModelElement から継承されます。)
明示的なインターフェイス実装プライベート メソッド IMergeElements.ChooseMergeTarget(ElementGroup) (ModelElement から継承されます。)
明示的なインターフェイス実装プライベート メソッド IMergeElements.ChooseMergeTarget(ElementGroupPrototype) (ModelElement から継承されます。)
明示的なインターフェイス実装プライベート メソッド IMergeElements.MergeConfigure (ModelElement から継承されます。)
明示的なインターフェイス実装プライベート メソッド IMergeElements.MergeDisconnect (ModelElement から継承されます。)
明示的なインターフェイス実装プライベート メソッド IMergeElements.MergeRelate (ModelElement から継承されます。)

このページのトップへ

解説

DSL 定義の 2 ModelElements ドメイン間の関係を定義すると、生成されるクラスは ElementLink から派生します。DSL のランタイムとデザイナーのリレーションシップは、ElementLinks です。

したがって ElementLinks は、ModelElements、プロパティを使用すると、リンクによって関連付けることができます。

詳細については、「プログラム コードにおけるモデル内の移動およびモデルの更新」を参照してください。

[リダイレクト] チュートリアル: 生成済み API の作成

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

関連項目

Microsoft.VisualStudio.Modeling 名前空間

継承階層

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.ElementLink
      Microsoft.VisualStudio.Modeling.Diagrams.LinkConnectsToNode
      Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeContainsNestedChildShapes
      Microsoft.VisualStudio.Modeling.Diagrams.ParentShapeHasRelativeChildShapes
      Microsoft.VisualStudio.Modeling.Diagrams.PresentationViewsSubject
      Microsoft.VisualStudio.Modeling.DslDefinition.AttributedDomainElementHasAttributes
      Microsoft.VisualStudio.Modeling.DslDefinition.AttributeHasParameters
      Microsoft.VisualStudio.Modeling.DslDefinition.BaseShapeMapReferencesBaseShape
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasBaseClass
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasElementMergeDirectives
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassHasProperties
      Microsoft.VisualStudio.Modeling.DslDefinition.ClassIndexesElementMergeDirective
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentMapHasElementsDisplayedPath
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentMapHasPropertyDisplayedPath
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentMapsReferToCompartment
      Microsoft.VisualStudio.Modeling.DslDefinition.CompartmentShapeMapHasCompartmentMaps
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectionBuilderHasLinkConnectDirectives
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorMapReferencesConnector
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorMapReferencesRelationship
      Microsoft.VisualStudio.Modeling.DslDefinition.ConnectorToolReferencesConnectionBuilder
      Microsoft.VisualStudio.Modeling.DslDefinition.CustomPropertyDescriptor
      Microsoft.VisualStudio.Modeling.DslDefinition.DecoratorMapHasPropertyDisplayedPath
      Microsoft.VisualStudio.Modeling.DslDefinition.DecoratorMapHasVisibilityPropertyPath
      Microsoft.VisualStudio.Modeling.DslDefinition.DecoratorMapReferencesDecorator
      Microsoft.VisualStudio.Modeling.DslDefinition.DesignerHasDiagram
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementHasDecorators
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramElementMapHasDecoratorMaps
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramHasConnectorMaps
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramHasShapeMaps
      Microsoft.VisualStudio.Modeling.DslDefinition.DiagramRepresentsClass
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainClassHasCustomTypeDescriptor
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainPropertyHasElementNameProvider
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleHasPropertyAttributes
      Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType
      Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinesEditor
      Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinesExplorer
      Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinesExplorerBehavior
      Microsoft.VisualStudio.Modeling.DslDefinition.DslEditorIdentifiesRootClass
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasConnectionBuilders
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasDslLibraryImports
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasReferenceTypes
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasTypes
      Microsoft.VisualStudio.Modeling.DslDefinition.DslLibraryHasXmlSerializationBehavior
      Microsoft.VisualStudio.Modeling.DslDefinition.EditorHasToolboxTabs
      Microsoft.VisualStudio.Modeling.DslDefinition.EditorHasValidation
      Microsoft.VisualStudio.Modeling.DslDefinition.EditorHasXmlSerializationDefinition
      Microsoft.VisualStudio.Modeling.DslDefinition.ElementMergeDirectiveHasForwardingPath
      Microsoft.VisualStudio.Modeling.DslDefinition.ElementMergeDirectiveHasLinkCreationPaths
      Microsoft.VisualStudio.Modeling.DslDefinition.EnumerationHasAttributes
      Microsoft.VisualStudio.Modeling.DslDefinition.EnumerationHasLiterals
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerBehaviorHasNodeSettings
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerHidesNodes
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerNodeSettingsHasPropertyDisplayedPath
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerNodeSettingsReferencesClass
      Microsoft.VisualStudio.Modeling.DslDefinition.ExplorerReferencesBehavior
      Microsoft.VisualStudio.Modeling.DslDefinition.LinkConnectDirectiveHasSourceDirectives
      Microsoft.VisualStudio.Modeling.DslDefinition.LinkConnectDirectiveHasTargetDirectives
      Microsoft.VisualStudio.Modeling.DslDefinition.LinkConnectDirectiveReferencesDomainRelationship
      Microsoft.VisualStudio.Modeling.DslDefinition.ObjectToolReferencesClass
      Microsoft.VisualStudio.Modeling.DslDefinition.PathHasSegments
      Microsoft.VisualStudio.Modeling.DslDefinition.PathSegmentReferencesRole
      Microsoft.VisualStudio.Modeling.DslDefinition.PropertyHasType
      Microsoft.VisualStudio.Modeling.DslDefinition.PropertyPathHasPath
      Microsoft.VisualStudio.Modeling.DslDefinition.PropertyPathReferencesProperty
      Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles
      Microsoft.VisualStudio.Modeling.DslDefinition.RoleHasRolePlayer
      Microsoft.VisualStudio.Modeling.DslDefinition.RolePlayerConnectDirectiveAcceptsClass
      Microsoft.VisualStudio.Modeling.DslDefinition.RolePlayerConnectDirectiveHasPathToRolePlayer
      Microsoft.VisualStudio.Modeling.DslDefinition.ShapeHasCompartments
      Microsoft.VisualStudio.Modeling.DslDefinition.ShapeMapHasParentElementPath
      Microsoft.VisualStudio.Modeling.DslDefinition.ShapeMapReferencesClass
      Microsoft.VisualStudio.Modeling.DslDefinition.ToolboxTabHasTools
      Microsoft.VisualStudio.Modeling.DslDefinition.VisibilityPropertyPathHasPropertyFilters
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlClassDataAppliesToDomainClass
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlClassDataHasXmlElementData
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlElementAppliesToDomainProperty
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlRelationshipDataAppliesToDomainRelationship
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationBehaviorHasXmlClassData
      Microsoft.VisualStudio.Modeling.DslDefinition.XmlSerializationDefinitionReferencesBehavior
      Microsoft.VisualStudio.Modeling.ExtensionExtendsElement