共用方式為


ModelElement.RemoveExtension 方法 (ModelElement, Type)

移除屬於特定型別指定任何的 ModelElement 副檔名。

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

語法

'宣告
Public Shared Function RemoveExtension ( _
    element As ModelElement, _
    extensionType As Type _
) As Boolean
public static bool RemoveExtension(
    ModelElement element,
    Type extensionType
)

參數

  • extensionType
    型別:System.Type
    若要移除的 ExtensionElement 型別

傳回值

型別:System.Boolean
true 如果特定類型的副檔名已找到並移除,其他的假

備註

請注意,假設集合會保留透過擴充性 API,則可以有只能有一個副檔名為特定的型別存在,因此只有第一個找到已移除的擴充功能。

.NET Framework 安全性

請參閱

參考

ModelElement 類別

RemoveExtension 多載

Microsoft.VisualStudio.Modeling 命名空間