IVsEnumTextSpans.GetCount Method
Returns the total count of text spans in the enumeration sequence.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaração
Function GetCount ( _
<OutAttribute> ByRef pcSpans As UInteger _
) As Integer
int GetCount(
out uint pcSpans
)
int GetCount(
[OutAttribute] unsigned int% pcSpans
)
abstract GetCount :
pcSpans:uint32 byref -> int
function GetCount(
pcSpans : uint
) : int
Parameters
- pcSpans
Type: System.UInt32%
[out] Total count of text spans in the enumeration sequence.
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 textmgr.idl:
[C++]
HRESULT IVsEnumTextSpans::GetCount(
[out] ULONG *pcSpans
);
.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.