IVsUserContext::CountSubcontexts Method (Int32)
Visual Studio 2015
Returns the number of subcontext bags associated with the context bag.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pc
-
Type:
System::Int32
[out, retval] Pointer to an integer that indicates the number of subcontext bags associated with the context bag.
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::CountSubcontexts(
[out, retval] int * pc
);
Use the IVsUserContext.CountSubcontexts method to determine the number of subcontext bags associated with the context bag. Because a subcontext bag is just another context bag, you can use AddAttribute to add attributes or keywords to the subcontext bag, and RemoveAttribute to remove attributes and keywords.
Show: