Condividi tramite


ModelElement.RemoveExtension Method (ModelElement, ExtensionElement)

Remove a specified ExtensionElement from the extensions of the specified ModelElement.

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

Syntax

'Declaration
Public Shared Function RemoveExtension ( _
    element As ModelElement, _
    extension As ExtensionElement _
) As Boolean
public static bool RemoveExtension(
    ModelElement element,
    ExtensionElement extension
)
public:
static bool RemoveExtension(
    ModelElement^ element, 
    ExtensionElement^ extension
)
static member RemoveExtension : 
        element:ModelElement * 
        extension:ExtensionElement -> bool
public static function RemoveExtension(
    element : ModelElement, 
    extension : ExtensionElement
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the specified extension was found and removed, else false

.NET Framework Security

See Also

Reference

ModelElement Class

RemoveExtension Overload

Microsoft.VisualStudio.Modeling Namespace