Compartilhar via


VsTextBufferClass.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 SetLanguageServiceID(Guid % guidLangService) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::SetLanguageServiceID;
public:
 virtual int SetLanguageServiceID(Guid % guidLangService);
public virtual int SetLanguageServiceID (ref Guid guidLangService);
abstract member SetLanguageServiceID : Guid -> int
override this.SetLanguageServiceID : Guid -> int
Public Overridable Function 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.

Implements

Applies to