次の方法で共有


ICompletionSourceProvider Interface

Provides completion sources.

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

Syntax

'宣言
Public Interface ICompletionSourceProvider
public interface ICompletionSourceProvider
public interface class ICompletionSourceProvider
type ICompletionSourceProvider =  interface end
public interface ICompletionSourceProvider

The ICompletionSourceProvider type exposes the following members.

Methods

  Name Description
Public method TryCreateCompletionSource Creates a completion provider for the given context.

Top

Remarks

This is a MEF component part, and must be exported with the following attribute:

[Export(typeof(ICompletionSourceProvider))] 

You may provide the ContentTypeAttribute and OrderAttribute to specify the type of content to which it applies. For more information about using these attributes, see Editor Extension Points.

Examples

For an example of this interface, see Walkthrough: Displaying Statement Completion.

See Also

Reference

Microsoft.VisualStudio.Language.Intellisense Namespace