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
textBuffer
Type: Microsoft.VisualStudio.Text.ITextBufferThe text buffer over which to create a provider.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.