Compartir a través de


IVsTextStream.GetLanguageServiceID (Método)

Devuelve el identificador único del lenguaje que está proporcionando el color y otros datos del atributo en este búfer.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
Function GetLanguageServiceID ( _
    <OutAttribute> ByRef pguidLangService As Guid _
) As Integer
int GetLanguageServiceID(
    out Guid pguidLangService
)
int GetLanguageServiceID(
    [OutAttribute] Guid% pguidLangService
)
abstract GetLanguageServiceID : 
        pguidLangService:Guid byref -> int
function GetLanguageServiceID(
    pguidLangService : Guid
) : int

Parámetros

  • pguidLangService
    Tipo: Guid%

    [out] Puntero a un identificador único del servicio de lenguaje. los búferes sin lenguajes pueden devolver CLSID_NULL.

Valor devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr.idl:

HRESULT IVsTextStream::GetLanguageServiceID(
   [out] GUID *pguidLangService
);

Este método podría requerir a considerables recursos, dependiendo de la implementación subyacente del búfer. Es decir, podría ser muy difícil calcular el tamaño del búfer si es una implementación virtual-línea-orientada buffer, como en Visual Basic.

Seguridad de .NET Framework

Vea también

Referencia

IVsTextStream Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)