共用方式為


ContextAttribute.Remove 方法

將屬性從父 ContextAttributes 集合移除。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
Sub Remove
void Remove()
void Remove()
abstract Remove : unit -> unit 
function Remove()

範例

Sub RemoveExample()
   ' Set object references.
   Dim addincoll As AddIns
   Dim addinobj As AddIn
   Dim abc As AddIn
        
   ' Register an Add-in.
   addincoll = AddIns
   Shell("regsvr32 F:\AddIns\RegExplore\Debug\regexplore.dll")
   addincoll.Update()
   addinobj = addincoll.Item(1)

   ' Connect the Add-in if it's not already connected.
   If addinobj.Connected = False Then
      addinobj.Connected = True
   End If

   ' Add an Add-in to the Add-In Manager dialog, then remove it.
   abc = ProjectSolution().AddIns.Add(addinobj.ProgID, addinobj.Description, addinobj.Name, False)
   ProjectSolution().AddIns.Item(1).Remove()
End Sub

.NET Framework 安全性

請參閱

參考

ContextAttribute 介面

EnvDTE 命名空間