ArgumentCompleterAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This attribute is used to specify an argument completer for a parameter to a cmdlet or function.
[Parameter()]
[ArgumentCompleter(typeof(NounArgumentCompleter))]
public string Noun { get; set; }
public ref class ArgumentCompleterAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public class ArgumentCompleterAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ArgumentCompleterAttribute = class
inherit Attribute
Public Class ArgumentCompleterAttribute
Inherits Attribute
- Inheritance
-
ArgumentCompleterAttribute
- Derived
- Attributes
Constructors
ArgumentCompleterAttribute() |
Initializes a new instance of the ArgumentCompleterAttribute class. This constructor is used by derived attributes implementing IArgumentCompleterFactory. |
ArgumentCompleterAttribute(ScriptBlock) |
This constructor is used primarily via PowerShell scripts. |
ArgumentCompleterAttribute(Type) |
Properties
ScriptBlock | |
Type |