IVsUserContext::RemoveAttributeIncludeChildren Method (String^, String^)
Removes an attribute or keyword from the context bag and from any associated subcontext bags.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- szName
-
Type:
System::String^
[in] Attribute name or keyword. If you are removing an attribute, then specify the name of the attribute. If you are removing a lookup keyword or an F1 keyword, then enter the term keyword.
- szValue
-
Type:
System::String^
[in] Attribute or keyword value. If you are removing an attribute, then specify the value of the attribute. If you are removing a lookup keyword or F1 keyword, then enter the actual text of the keyword.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From context.idl:
HRESULT IVsUserContext::RemoveAttributeIncludeChildren( [in] LPCOLESTR szName, [in] LPCOLESTR szValue );
Calling IVsUserContext.RemoveAttributeIncludeChildren(szName, null) removes all values for a given attribute from the context bag and any associated subcontext bags. Calling IVsUserContext.RemoveAttributeIncludeChildren(null, null) removes all attributes from the context and subcontext bags.
Use the RemoveAttribute method to only remove attributes or keywords from the context bag (that is, excluding the subcontext bag).