HostingExtensions.GetInvocationContext Method
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.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Invocation::InvocationContext ^ GetInvocationContext(Microsoft::Extensions::Hosting::HostBuilderContext ^ context);
C#
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
.NET Standard 2.1 (package-provided) and .NET Standard 2.0 (package-provided)
Product | Versions |
---|---|
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Invocation::InvocationContext ^ GetInvocationContext(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder);
C#
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
.NET Standard 2.1 (package-provided) and .NET Standard 2.0 (package-provided)
Product | Versions |
---|---|
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: