次の方法で共有


VsTextManagerClass.MapFilenameToLanguageSID Method

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)

Syntax

'宣言
Public Overridable Function MapFilenameToLanguageSID ( _
    pszFileName As String, _
    <OutAttribute> ByRef pguidLangSID As Guid _
) As Integer
'使用
Dim instance As VsTextManagerClass
Dim pszFileName As String
Dim pguidLangSID As Guid
Dim returnValue As Integer

returnValue = instance.MapFilenameToLanguageSID(pszFileName, _
    pguidLangSID)
public virtual int MapFilenameToLanguageSID(
    string pszFileName,
    out Guid pguidLangSID
)
public:
virtual int MapFilenameToLanguageSID(
    [InAttribute] String^ pszFileName, 
    [OutAttribute] Guid% pguidLangSID
)
public function MapFilenameToLanguageSID(
    pszFileName : String, 
    pguidLangSID : Guid
) : int

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

Implements

IVsTextManager.MapFilenameToLanguageSID(String, Guid%)

Permissions

See Also

Reference

VsTextManagerClass Class

VsTextManagerClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace