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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.