OptionsMonitor<TOptions> 클래스
정의
IOptionsMonitor<TOptions>의 구현입니다.Implementation of IOptionsMonitor<TOptions>.
generic <typename TOptions>
where TOptions : class, gcnew()public ref class OptionsMonitor : IDisposable, Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
public class OptionsMonitor<TOptions> : IDisposable, Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class, new()
type OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
interface IOptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
interface IDisposable
Public Class OptionsMonitor(Of TOptions)
Implements IDisposable, IOptionsMonitor(Of TOptions)
형식 매개 변수
- TOptions
옵션 유형입니다.Options type.
- 상속
-
OptionsMonitor<TOptions>
- 구현
생성자
속성
CurrentValue |
옵션의 현재 값입니다.The present value of the options. |
메서드
Dispose() |
모든 변경 등록 구독을 제거합니다.Removes all change registration subscriptions. |
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) |
OnChange(Action<TOptions,String>) |
|
OnChange(Action<TOptions>) |
TOptions가 변경될 때마다 호출될 수신기를 등록합니다.Registers a listener to be called whenever TOptions changes. |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
확장 메서드
OnChange<TOptions>(IOptionsMonitor<TOptions>, Action<TOptions>) |
|