共用方式為


ICommonEditorAssetServiceFactory.GetOrCreate(ITextBuffer) Method

Definition

Gets a service that provides common language service elements.

public:
 Microsoft::VisualStudio::Editor::ICommonEditorAssetService ^ GetOrCreate(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public Microsoft.VisualStudio.Editor.ICommonEditorAssetService GetOrCreate (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetOrCreate : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Editor.ICommonEditorAssetService
Public Function GetOrCreate (textBuffer As ITextBuffer) As ICommonEditorAssetService

Parameters

textBuffer
ITextBuffer

The ITextBuffer for which to initialize TextMate.

Returns

An instance of ICommonEditorAssetService.

Remarks

This method supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to