Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CompletionResult Class

Definition

Namespace:
System.Management.Automation
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

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.

Class used to store a tab completion or Intellisense result.

public ref class CompletionResult
public class CompletionResult
type CompletionResult = class
Public Class CompletionResult
Inheritance
CompletionResult

Constructors

Name Description
CompletionResult(String, String, CompletionResultType, String)

Initializes a new instance of the CompletionResult class.

CompletionResult(String)

Initializes a new instance of this class internally if the result out of TabExpansion is a string.

Properties

Name Description
CompletionText

Gets the text to be used as the auto completion result.

ListItemText

Gets the text to be displayed in a list.

ResultType

Gets the type of completion result.

ToolTip

Gets the text for the tooltip with details to be displayed about the object.

Applies to