HostingExtensions.GetInvocationContext Method
Definition
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.
Overloads
GetInvocationContext(HostBuilderContext) | |
GetInvocationContext(IHostBuilder) |
GetInvocationContext(HostBuilderContext)
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Invocation::InvocationContext ^ GetInvocationContext(Microsoft::Extensions::Hosting::HostBuilderContext ^ context);
public static System.CommandLine.Invocation.InvocationContext GetInvocationContext(this Microsoft.Extensions.Hosting.HostBuilderContext context);
static member GetInvocationContext : Microsoft.Extensions.Hosting.HostBuilderContext -> System.CommandLine.Invocation.InvocationContext
<Extension()>
Public Function GetInvocationContext (context As HostBuilderContext) As InvocationContext
Parameters
- context
- HostBuilderContext
Returns
Applies to
GetInvocationContext(IHostBuilder)
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Invocation::InvocationContext ^ GetInvocationContext(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder);
public static System.CommandLine.Invocation.InvocationContext GetInvocationContext(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder);
static member GetInvocationContext : Microsoft.Extensions.Hosting.IHostBuilder -> System.CommandLine.Invocation.InvocationContext
<Extension()>
Public Function GetInvocationContext (hostBuilder As IHostBuilder) As InvocationContext
Parameters
- hostBuilder
- IHostBuilder
Returns
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.