Share via


IVsTextManager.MapFilenameToLanguageSID, méthode

Donné un nom de fichier, détermine le service de langage enregistré, si un existe, qui le contient.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function MapFilenameToLanguageSID ( _
    pszFileName As String, _
    <OutAttribute> ByRef pguidLangSID As Guid _
) As Integer
int MapFilenameToLanguageSID(
    string pszFileName,
    out Guid pguidLangSID
)
int MapFilenameToLanguageSID(
    [InAttribute] String^ pszFileName, 
    [OutAttribute] Guid% pguidLangSID
)
abstract MapFilenameToLanguageSID : 
        pszFileName:string * 
        pguidLangSID:Guid byref -> int
function MapFilenameToLanguageSID(
    pszFileName : String, 
    pguidLangSID : Guid
) : int

Paramètres

  • pszFileName
    Type : String

    [in] nom de fichier associé avec le service de langage.

  • pguidLangSID
    Type : Guid%

    [out] pointeur au service de langage.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextManager::MapFilenameToLanguageSID(
   [in] const WCHAR *pszFileName,
   [out] GUID *pguidLangSID
);

Cette méthode vous permet pour mapper un type de fichier au service de langage approprié pour ce type. Ce mappage introduit de regarder dans « HKEY_LOCAL_MACHINE \ Microsoft logiciel \ \ langages \ extensions de fichier » pour les entrées qui mappent une extension à un SID, c. autrement dit., CLSID pour un service de langage qui implémente vraisemblablement IVsLanguageInfo.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextManager Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms