共用方式為


IVsTextBufferEvents.OnNewLanguageService Method

Notifies the client when a new language service is associated with a buffer.

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

Syntax

'宣告
Sub OnNewLanguageService ( _
    ByRef sidLangServiceID As Guid _
)
void OnNewLanguageService(
    ref Guid sidLangServiceID
)
void OnNewLanguageService(
    [InAttribute] Guid% sidLangServiceID
)
abstract OnNewLanguageService : 
        sidLangServiceID:Guid byref -> unit 
function OnNewLanguageService(
    sidLangServiceID : Guid
)

Parameters

  • sidLangServiceID
    Type: System.Guid%
    [in] Reference ID of the new language service.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextBufferEvents::OnNewLanguageService(
   [in] REFGUID sidLangServiceID
);

.NET Framework Security

See Also

Reference

IVsTextBufferEvents Interface

Microsoft.VisualStudio.TextManager.Interop Namespace