Partilhar via


ModelElement.IsExtendedBy Method

Definition

Overloads

IsExtendedBy(ModelElement, Type)

Query whether the specified ModelElement is currently extended by an ExtensionElement of a particular type.

IsExtendedBy(ModelElement, DomainClassInfo)

Query whether the specified ModelElement is currently extended by an ExtensionElement of a particular type.

IsExtendedBy(ModelElement, Guid)

Query whether the specified ModelElement is currently extended by an ExtensionElement of a particular type.

IsExtendedBy(ModelElement, Type)

Query whether the specified ModelElement is currently extended by an ExtensionElement of a particular type.

public:
 static bool IsExtendedBy(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Type ^ extensionType);
public static bool IsExtendedBy (Microsoft.VisualStudio.Modeling.ModelElement element, Type extensionType);
static member IsExtendedBy : Microsoft.VisualStudio.Modeling.ModelElement * Type -> bool
Public Shared Function IsExtendedBy (element As ModelElement, extensionType As Type) As Boolean

Parameters

element
ModelElement

The element whose extensions are examined

extensionType
Type

Type of ExtensionElement

Returns

true if the element has an extension of the specified type, else false

Applies to

IsExtendedBy(ModelElement, DomainClassInfo)

Query whether the specified ModelElement is currently extended by an ExtensionElement of a particular type.

public:
 static bool IsExtendedBy(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ extensionClass);
public static bool IsExtendedBy (Microsoft.VisualStudio.Modeling.ModelElement element, Microsoft.VisualStudio.Modeling.DomainClassInfo extensionClass);
static member IsExtendedBy : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainClassInfo -> bool
Public Shared Function IsExtendedBy (element As ModelElement, extensionClass As DomainClassInfo) As Boolean

Parameters

element
ModelElement

The element whose extensions are examined

extensionClass
DomainClassInfo

ExtensionElement domain class

Returns

true if the element has an extension of the specified type, else false

Applies to

IsExtendedBy(ModelElement, Guid)

Query whether the specified ModelElement is currently extended by an ExtensionElement of a particular type.

public:
 static bool IsExtendedBy(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Guid extensionClassId);
public static bool IsExtendedBy (Microsoft.VisualStudio.Modeling.ModelElement element, Guid extensionClassId);
static member IsExtendedBy : Microsoft.VisualStudio.Modeling.ModelElement * Guid -> bool
Public Shared Function IsExtendedBy (element As ModelElement, extensionClassId As Guid) As Boolean

Parameters

element
ModelElement

The element whose extensions are examined

extensionClassId
Guid

Unique Id of an ExtensionElement domain class

Returns

true if the element has an extension of the specified type, else false

Applies to