共用方式為


IVsProjectSpecificEditorMap2.GetSpecificLanguageService(String, Guid) Method

Definition

Use to specify the language service that should be associated with the core editor if the core editor is the default editor.

public:
 int GetSpecificLanguageService(System::String ^ pszMkDocument, [Runtime::InteropServices::Out] Guid % pguidLanguageService);
public int GetSpecificLanguageService (string pszMkDocument, out Guid pguidLanguageService);
abstract member GetSpecificLanguageService : string * Guid -> int
Public Function GetSpecificLanguageService (pszMkDocument As String, ByRef pguidLanguageService As Guid) As Integer

Parameters

pszMkDocument
String

[in] String form of the unique moniker identifier of the document in the project system.

pguidLanguageService
Guid

[out, retval] GUID of the language service to be associated with the core editor.

Returns

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  
);  

Applies to