IVsUserContext.CountSubcontexts(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the number of subcontext bags associated with the context bag.
public:
int CountSubcontexts([Runtime::InteropServices::Out] int % pc);
int CountSubcontexts([Runtime::InteropServices::Out] int & pc);
public int CountSubcontexts (out int pc);
abstract member CountSubcontexts : int -> int
Public Function CountSubcontexts (ByRef pc As Integer) As Integer
Parameters
- pc
- Int32
[out, retval] Pointer to an integer that indicates the number of subcontext bags associated with the context bag.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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.