OptionsManager<TOptions> 类
定义
IOptions<TOptions> 和 IOptionsSnapshot<TOptions> 的实现。Implementation of IOptions<TOptions> and IOptionsSnapshot<TOptions>.
generic <typename TOptions>
where TOptions : class, gcnew()public ref class OptionsManager : Microsoft::Extensions::Options::IOptions<TOptions>
generic <typename TOptions>
where TOptions : class, gcnew()public ref class OptionsManager : Microsoft::Extensions::Options::IOptions<TOptions>, Microsoft::Extensions::Options::IOptionsSnapshot<TOptions>
generic <typename TOptions>
where TOptions : classpublic ref class OptionsManager : Microsoft::Extensions::Options::IOptions<TOptions>, Microsoft::Extensions::Options::IOptionsSnapshot<TOptions>
public class OptionsManager<TOptions> : Microsoft.Extensions.Options.IOptions<TOptions> where TOptions : class, new()
public class OptionsManager<TOptions> : Microsoft.Extensions.Options.IOptions<TOptions>, Microsoft.Extensions.Options.IOptionsSnapshot<TOptions> where TOptions : class, new()
public class OptionsManager<TOptions> : Microsoft.Extensions.Options.IOptions<TOptions>, Microsoft.Extensions.Options.IOptionsSnapshot<TOptions> where TOptions : class
type OptionsManager<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
interface IOptions<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
type OptionsManager<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
interface IOptions<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
interface IOptionsSnapshot<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
type OptionsManager<'Options (requires 'Options : null)> = class
interface IOptions<'Options (requires 'Options : null)>
interface IOptionsSnapshot<'Options (requires 'Options : null)>
Public Class OptionsManager(Of TOptions)
Implements IOptions(Of TOptions)
Public Class OptionsManager(Of TOptions)
Implements IOptions(Of TOptions), IOptionsSnapshot(Of TOptions)
类型参数
- TOptions
Options 类型。Options type.
- 继承
-
OptionsManager<TOptions>
- 实现
构造函数
| OptionsManager<TOptions>(IEnumerable<IConfigureOptions<TOptions>>) |
使用指定的选项配置初始化新的实例。Initializes a new instance with the specified options configurations. |
| OptionsManager<TOptions>(IOptionsFactory<TOptions>) |
使用指定的选项配置初始化新的实例。Initializes a new instance with the specified options configurations. |
属性
| Value |
默认配置的 |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| Get(String) |
返回具有给定 |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |