VsTextPackageClass.MapFilenameToLanguageSID(String, Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.