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
)
abstract MapFilenameToLanguageSID :
pszFileName:string *
pguidLangSID:Guid byref -> int
override MapFilenameToLanguageSID :
pszFileName:string *
pguidLangSID:Guid byref -> int
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%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.