Options.Create<TOptions>(TOptions) 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.
Creates a wrapper around an instance of TOptions
to return itself as an IOptions<TOptions>.
public:
generic <typename TOptions>
where TOptions : class static Microsoft::Extensions::Options::IOptions<TOptions> ^ Create(TOptions options);
public static Microsoft.Extensions.Options.IOptions<TOptions> Create<TOptions> (TOptions options) where TOptions : class;
static member Create : 'Options -> Microsoft.Extensions.Options.IOptions<'Options (requires 'Options : null)> (requires 'Options : null)
Public Shared Function Create(Of TOptions As Class) (options As TOptions) As IOptions(Of TOptions)
Type Parameters
- TOptions
Options type.
Parameters
- options
- TOptions
Options object.
Returns
Wrapped options object.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.