HostingExtensions.GetHost(ParseResult) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHost ^ GetHost(System::CommandLine::ParseResult ^ parseResult);
public static Microsoft.Extensions.Hosting.IHost GetHost(this System.CommandLine.ParseResult parseResult);
static member GetHost : System.CommandLine.ParseResult -> Microsoft.Extensions.Hosting.IHost
<Extension()>
Public Function GetHost (parseResult As ParseResult) As IHost
参数
- parseResult
- ParseResult