IVsProjectSpecificEditorMap2.GetSpecificLanguageService Method
Use to specify the language service that should be associated with the core editor if the core editor is the default editor.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function GetSpecificLanguageService ( _
pszMkDocument As String, _
<OutAttribute> ByRef pguidLanguageService As Guid _
) As Integer
'Uso
Dim instance As IVsProjectSpecificEditorMap2
Dim pszMkDocument As String
Dim pguidLanguageService As Guid
Dim returnValue As Integer
returnValue = instance.GetSpecificLanguageService(pszMkDocument, _
pguidLanguageService)
int GetSpecificLanguageService(
string pszMkDocument,
out Guid pguidLanguageService
)
int GetSpecificLanguageService(
[InAttribute] String^ pszMkDocument,
[OutAttribute] Guid% pguidLanguageService
)
abstract GetSpecificLanguageService :
pszMkDocument:string *
pguidLanguageService:Guid byref -> int
function GetSpecificLanguageService(
pszMkDocument : String,
pguidLanguageService : Guid
) : int
Parameters
- pszMkDocument
Type: System.String
[in] String form of the unique moniker identifier of the document in the project system.
- pguidLanguageService
Type: System.Guid%
[out, retval] GUID of the language service to be associated with the core editor.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsProjectSpecificEditorMap2::GetSpecificLanguageService(
[in] LPCOLESTR pszMkDocument,
[out, retval] GUID *pguidLanguageService
);
.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.
See Also
Reference
IVsProjectSpecificEditorMap2 Interface