Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns the number of subcontext bags associated with the context bag.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function CountSubcontexts ( _
<OutAttribute> ByRef pc As Integer _
) As Integer
'Usage
Dim instance As IVsUserContext
Dim pc As Integer
Dim returnValue As Integer
returnValue = instance.CountSubcontexts(pc)
int CountSubcontexts(
out int pc
)
int CountSubcontexts(
[OutAttribute] int% pc
)
abstract CountSubcontexts :
pc:int byref -> int
function CountSubcontexts(
pc : int
) : int
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.Int32
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.
.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.