Freigeben über


ICompletionSourceProvider.TryCreateCompletionSource Method

Creates a completion provider for the given context.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Declaration
Function TryCreateCompletionSource ( _
    textBuffer As ITextBuffer _
) As ICompletionSource
ICompletionSource TryCreateCompletionSource(
    ITextBuffer textBuffer
)
ICompletionSource^ TryCreateCompletionSource(
    ITextBuffer^ textBuffer
)
abstract TryCreateCompletionSource : 
        textBuffer:ITextBuffer -> ICompletionSource
function TryCreateCompletionSource(
    textBuffer : ITextBuffer
) : ICompletionSource

Parameters

Return Value

Type: Microsoft.VisualStudio.Language.Intellisense.ICompletionSource
A valid ICompletionSource instance, or nulla null reference (Nothing in Visual Basic) if none could be created.

.NET Framework Security

See Also

Reference

ICompletionSourceProvider Interface

Microsoft.VisualStudio.Language.Intellisense Namespace