IVsContainedLanguageFactory::GetLanguage Method (IVsHierarchy^, UInt32, IVsTextBufferCoordinator^, IVsContainedLanguage^)
Visual Studio 2015
Returns an IVsContainedLanguage object that a primary language can use to delegate certain responsibilities for managing a contained language.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int GetLanguage( IVsHierarchy^ pHierarchy, unsigned int itemid, IVsTextBufferCoordinator^ pBufferCoordinator, [OutAttribute] IVsContainedLanguage^% ppLanguage )
Parameters
- pHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] An IVsHierarchy object representing the hierarchy to which this object belongs.
- itemid
-
Type:
System::UInt32
[in] A unique identifier for a source file or one of the following values: VSITEMID_NIL, VSITEMID_ROOT, or VSITEMID_SELECTION.
- pBufferCoordinator
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBufferCoordinator^
[in] An IVsTextBufferCoordinator object representing the buffer coordinator to associate with the contained language.
- ppLanguage
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsContainedLanguage^
[out] Returns an IVsContainedLanguage object representing the contained language for the specified hierarchy item.
From singlefileeditor.idl:
HRESULT GetLanguage( [in] IVsHierarchy* pHierarchy, [in] VSITEMID itemid, [in] IVsTextBufferCoordinator* pBufferCoordinator, [out, retval] IVsContainedLanguage** ppLanguage );
Show: