C# 클래스 PowerArgs.Cli.ContextAssistSearchResult

A class that represents a search result that can be selected by the ContextAssistSearch context assist provider.
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 메소드들

메소드 설명
FromConsoleString ( ConsoleString stringValue ) : ContextAssistSearchResult

Creates a string result where the display text and value are the same object.

FromObject ( object value, ConsoleString displayText ) : ContextAssistSearchResult

Creates a search result from an object, given an optional display value.

FromObject ( object value, string displayText = null ) : ContextAssistSearchResult

Creates a search result from an object, given an optional display value.

FromString ( string stringValue ) : ContextAssistSearchResult

Creates a string result where the display text and value are the same object.

비공개 메소드들

메소드 설명
ContextAssistSearchResult ( object value, ConsoleString displayText ) : System

메소드 상세

FromConsoleString() 공개 정적인 메소드

Creates a string result where the display text and value are the same object.
public static FromConsoleString ( ConsoleString stringValue ) : ContextAssistSearchResult
stringValue ConsoleString the result string
리턴 ContextAssistSearchResult

FromObject() 공개 정적인 메소드

Creates a search result from an object, given an optional display value.
public static FromObject ( object value, ConsoleString displayText ) : ContextAssistSearchResult
value object The object to use as a result.
displayText ConsoleString The display text for the result. If null, the value's ToString() method will be called
리턴 ContextAssistSearchResult

FromObject() 공개 정적인 메소드

Creates a search result from an object, given an optional display value.
public static FromObject ( object value, string displayText = null ) : ContextAssistSearchResult
value object The object to use as a result.
displayText string The display text for the result. If null, the value's ToString() method will be called
리턴 ContextAssistSearchResult

FromString() 공개 정적인 메소드

Creates a string result where the display text and value are the same object.
public static FromString ( string stringValue ) : ContextAssistSearchResult
stringValue string the result string
리턴 ContextAssistSearchResult