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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET