次の方法で共有


CompletionResult Constructors

Definition

Overloads

CompletionResult(String)

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

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.

public:
 CompletionResult(System::String ^ completionText);
public:
 CompletionResult(Platform::String ^ completionText);
 CompletionResult(std::wstring const & completionText);
public CompletionResult (string completionText);
new System.Management.Automation.CompletionResult : string -> System.Management.Automation.CompletionResult
Public Sub New (completionText As String)

Parameters

completionText
String

Completion text.

Applies to

CompletionResult(String, String, CompletionResultType, String)

Initializes a new instance of the CompletionResult class.

public:
 CompletionResult(System::String ^ completionText, System::String ^ listItemText, System::Management::Automation::CompletionResultType resultType, System::String ^ toolTip);
public CompletionResult (string completionText, string listItemText, System.Management.Automation.CompletionResultType resultType, string toolTip);
new System.Management.Automation.CompletionResult : string * string * System.Management.Automation.CompletionResultType * string -> System.Management.Automation.CompletionResult
Public Sub New (completionText As String, listItemText As String, resultType As CompletionResultType, toolTip As String)

Parameters

completionText
String

The text to be used as the auto completion result.

listItemText
String

The text to be displayed in a list.

resultType
CompletionResultType

The type of completion result.

toolTip
String

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

Applies to