OptionsSnapshot<TOptions> 类

定义

IOptionsSnapshot 的实现。Implementation of IOptionsSnapshot.

generic <typename TOptions>
 where TOptions : class, gcnew()public ref class OptionsSnapshot : Microsoft::Extensions::Options::IOptionsSnapshot<TOptions>
public class OptionsSnapshot<TOptions> : Microsoft.Extensions.Options.IOptionsSnapshot<TOptions> where TOptions : class, new()
type OptionsSnapshot<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
    interface IOptionsSnapshot<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
Public Class OptionsSnapshot(Of TOptions)
Implements IOptionsSnapshot(Of TOptions)

类型参数

TOptions
继承
OptionsSnapshot<TOptions>
实现

构造函数

OptionsSnapshot<TOptions>(IOptionsMonitor<TOptions>)

初始化一个新实例。Initializes a new instance.

属性

Value

配置的选项实例。The configured options instance.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets 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)

适用于