Freigeben über


CompletionSet Class

Represents an IntelliSense completion list that is displayed in the current text view.

This API is not CLS-compliant. The CLS-compliant alternative is [None].

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Class CompletionSet _
    Implements IVsCompletionSet, IVsCompletionSetEx, IDisposable
'Usage
Dim instance As CompletionSet
[CLSCompliantAttribute(false)]
public class CompletionSet : IVsCompletionSet, 
    IVsCompletionSetEx, IDisposable
[CLSCompliantAttribute(false)]
public ref class CompletionSet : IVsCompletionSet, 
    IVsCompletionSetEx, IDisposable
[<CLSCompliantAttribute(false)>]
type CompletionSet =  
    class
        interface IVsCompletionSet
        interface IVsCompletionSetEx
        interface IDisposable
    end
public class CompletionSet implements IVsCompletionSet, IVsCompletionSetEx, IDisposable

Remarks

Visual Studio manages the actual display of the completion list while this class manages what is displayed in the completion list and what happens when the user commits to an entry in that list.

Notes to Implementers

This class implements everything needed to interact with the Declarations class and to provide suitable default behavior for each method so that there is typically no need for you to implement a derived version of the CompletionSet class.

Notes to Callers

An instance of this class is returned from the CreateCompletionSet method in the Source class. The CreateCompletionSet method is typically called from the Source class constructor. The CompletionSet object is then used in handling a completion operation that may optionally require displaying a completion list. Visual Studio interacts with the CompletionSet class through the IVsCompletionSet interface to implement the IntelliSense completion list.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Package.CompletionSet

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CompletionSet Members

Microsoft.VisualStudio.Package Namespace