VsTextPackageClass.MapFilenameToLanguageSID(String, Guid) Method

Definition

Given a file name, determines the registered language service, if one exists, that understands it.

public:
 virtual int MapFilenameToLanguageSID(System::String ^ pszFileName, [Runtime::InteropServices::Out] Guid % pguidLangSID) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::MapFilenameToLanguageSID;
public:
 virtual int MapFilenameToLanguageSID(System::String ^ pszFileName, [Runtime::InteropServices::Out] Guid % pguidLangSID);
public virtual int MapFilenameToLanguageSID (string pszFileName, out Guid pguidLangSID);
abstract member MapFilenameToLanguageSID : string * Guid -> int
override this.MapFilenameToLanguageSID : string * Guid -> int
Public Overridable Function MapFilenameToLanguageSID (pszFileName As String, ByRef pguidLangSID As Guid) As Integer

Parameters

pszFileName
String

[in] File name associated with the language service.

pguidLangSID
Guid

[out] Pointer to the language service.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to