Partager via


ArgumentCompleterAttribute Constructors

Definition

Overloads

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)

ArgumentCompleterAttribute()

Initializes a new instance of the ArgumentCompleterAttribute class. This constructor is used by derived attributes implementing IArgumentCompleterFactory.

protected ArgumentCompleterAttribute ();
Protected Sub New ()

Applies to

ArgumentCompleterAttribute(ScriptBlock)

This constructor is used primarily via PowerShell scripts.

public:
 ArgumentCompleterAttribute(System::Management::Automation::ScriptBlock ^ scriptBlock);
public ArgumentCompleterAttribute (System.Management.Automation.ScriptBlock scriptBlock);
new System.Management.Automation.ArgumentCompleterAttribute : System.Management.Automation.ScriptBlock -> System.Management.Automation.ArgumentCompleterAttribute
Public Sub New (scriptBlock As ScriptBlock)

Parameters

scriptBlock
ScriptBlock

Applies to

ArgumentCompleterAttribute(Type)

public:
 ArgumentCompleterAttribute(Type ^ type);
public:
 ArgumentCompleterAttribute(Platform::Type ^ type);
public ArgumentCompleterAttribute (Type type);
new System.Management.Automation.ArgumentCompleterAttribute : Type -> System.Management.Automation.ArgumentCompleterAttribute
Public Sub New (type As Type)

Parameters

type
Type

The type must implement IArgumentCompleter and have a default constructor.

Applies to