VsTextBufferClass.IVsTextLines_SetLanguageServiceID(Guid) Method

Definition

Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer.

public:
 virtual int IVsTextLines_SetLanguageServiceID(Guid % guidLangService) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::SetLanguageServiceID;
public:
 virtual int IVsTextLines_SetLanguageServiceID(Guid % guidLangService);
public virtual int IVsTextLines_SetLanguageServiceID (ref Guid guidLangService);
abstract member IVsTextLines_SetLanguageServiceID : Guid -> int
override this.IVsTextLines_SetLanguageServiceID : Guid -> int
Public Overridable Function IVsTextLines_SetLanguageServiceID (ByRef guidLangService As Guid) As Integer

Parameters

guidLangService
Guid

[in] Identifier of the language service. Buffers without languages can be CLSID_NULL.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Applies to