IVsContainedCode.EnumOriginalCodeBlocks Method
Returns an enumerator of original code block mappings.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function EnumOriginalCodeBlocks ( _
<OutAttribute> ByRef ppEnum As IVsEnumCodeBlocks _
) As Integer
int EnumOriginalCodeBlocks(
out IVsEnumCodeBlocks ppEnum
)
int EnumOriginalCodeBlocks(
[OutAttribute] IVsEnumCodeBlocks^% ppEnum
)
abstract EnumOriginalCodeBlocks :
ppEnum:IVsEnumCodeBlocks byref -> int
function EnumOriginalCodeBlocks(
ppEnum : IVsEnumCodeBlocks
) : int
Parameters
- ppEnum
Type: Microsoft.VisualStudio.TextManager.Interop.IVsEnumCodeBlocks%
[out] Returns an IVsEnumCodeBlocks object that contains a list of TextSpanAndCookie objects representing all embedded code blocks in the original document.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT EnumOriginalCodeBlocks(
[out] IVsEnumCodeBlocks **ppEnum
);
.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.