IShellProvider 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供並管理特定 shell 的完成腳本。
public interface class IShellProvider
public interface IShellProvider
type IShellProvider = interface
Public Interface IShellProvider
- 衍生
屬性
| 名稱 | Description |
|---|---|
| ArgumentName |
這個 shell 的名稱在完成的命令列參數中顯示。 |
| Extension |
這個檔案副檔名通常用於這個 shell 的補全腳本(沒有句號)。 |
| HelpDescription |
這會在 CLI 完成和說明文字中指定 shell 時使用。 用它來提供關於外殼的任何具體細節。 例如,PowershellShellProvider 會說明它只適用於 PowerShell Core。 |
方法
| 名稱 | Description |
|---|---|
| GenerateCompletions(Command) |
為指定指令樹產生 shell 專屬的補全腳本。 |