Partager via


IVsContainedCode Interface

Definition

Implemented by a language to support buffer span mapping.

public interface class IVsContainedCode
public interface class IVsContainedCode
__interface IVsContainedCode
[System.Runtime.InteropServices.Guid("171A72AE-BAE6-4B66-9A58-4691F08ED9F2")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsContainedCode
[System.Runtime.InteropServices.Guid("171A72AE-BAE6-4B66-9A58-4691F08ED9F2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsContainedCode
[<System.Runtime.InteropServices.Guid("171A72AE-BAE6-4B66-9A58-4691F08ED9F2")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsContainedCode = interface
[<System.Runtime.InteropServices.Guid("171A72AE-BAE6-4B66-9A58-4691F08ED9F2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsContainedCode = interface
Public Interface IVsContainedCode
Attributes

Remarks

Code blocks that are embedded or contained in another document are typically put into a separate buffer to be passed to a language service for display and parsing. However, the code blocks must be displayed to the user in the original document. This requires the capability of mapping between the original buffer that contains the document with the embedded code block and the separate buffer that contains just the code block. This interface is represents the code blocks in the original document.

Notes to Implementers

This interface is typically implemented on the same object that implements the IVsContainedLanguage interface.

Notes to Callers

Obtain this interface by calling the QueryInterface method on an IVsContainedLanguage object or by casting the IVsContainedLanguage object to the IVsContainedCode interface.

Methods

EnumOriginalCodeBlocks(IVsEnumCodeBlocks)

Returns an enumerator of original code block mappings.

HostSpansUpdated()

Notifies the provider of the code spans that the buffer coordinator has been updated with new spans.

Applies to