Class CompletionAttribute
Represents an attribute that can be applied to method parameters to specify a custom completion provider.
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)]
public class CompletionAttribute : Attribute, _Attribute
- Inheritance
-
CompletionAttribute
- Implements
- Inherited Members
Constructors
CompletionAttribute(Type)
Initializes a new instance of the CompletionAttribute class.
public CompletionAttribute(Type completionProvider)
Parameters
completionProviderTypeThe type of the completion provider.
Exceptions
- ArgumentException
Thrown when
completionProvideris not assignable to ICompletionSource
-or- does not have a parameterless constructor.
Properties
CompletionProvider
Gets the type of the completion provider.
public Type CompletionProvider { get; }