IVsContainedLanguageFactory.GetLanguage Method
Returns an IVsContainedLanguage object that a primary language can use to delegate certain responsibilities for managing a contained language.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function GetLanguage ( _
pHierarchy As IVsHierarchy, _
itemid As UInteger, _
pBufferCoordinator As IVsTextBufferCoordinator, _
<OutAttribute> ByRef ppLanguage As IVsContainedLanguage _
) As Integer
int GetLanguage(
IVsHierarchy pHierarchy,
uint itemid,
IVsTextBufferCoordinator pBufferCoordinator,
out IVsContainedLanguage ppLanguage
)
int GetLanguage(
[InAttribute] IVsHierarchy^ pHierarchy,
[InAttribute] unsigned int itemid,
[InAttribute] IVsTextBufferCoordinator^ pBufferCoordinator,
[OutAttribute] IVsContainedLanguage^% ppLanguage
)
abstract GetLanguage :
pHierarchy:IVsHierarchy *
itemid:uint32 *
pBufferCoordinator:IVsTextBufferCoordinator *
ppLanguage:IVsContainedLanguage byref -> int
function GetLanguage(
pHierarchy : IVsHierarchy,
itemid : uint,
pBufferCoordinator : IVsTextBufferCoordinator,
ppLanguage : IVsContainedLanguage
) : int
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.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
Com Signature
From singlefileeditor.idl:
HRESULT GetLanguage(
[in] IVsHierarchy* pHierarchy,
[in] VSITEMID itemid,
[in] IVsTextBufferCoordinator* pBufferCoordinator,
[out, retval] IVsContainedLanguage** ppLanguage
);
.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.