ContextAttribute.Remove Method
Removes the attribute from its parent ContextAttributes collection.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub Remove
'Usage
Dim instance As ContextAttribute
instance.Remove()
void Remove()
void Remove()
function Remove()
Examples
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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.