VsTextPackageClass::MapFilenameToLanguageSID Method (String^, Guid)

 

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

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual int MapFilenameToLanguageSID(
	String^ pszFileName,
	[OutAttribute] Guid% pguidLangSID
)

Parameters

pszFileName
Type: System::String^

[in] File name associated with the language service.

pguidLangSID
Type: System::Guid

[out] Pointer to the language service.

Return Value

Type: System::Int32

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

Return to top
Show: