OptionsMonitor<TOptions> Class
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.
Implementation of IOptionsMonitor<TOptions>.
generic <typename TOptions>
where TOptions : class, gcnew()public ref class OptionsMonitor : Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
generic <typename TOptions>
where TOptions : class, gcnew()public ref class OptionsMonitor : IDisposable, Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
generic <typename TOptions>
where TOptions : classpublic ref class OptionsMonitor : IDisposable, Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
public class OptionsMonitor<TOptions> : Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class, new()
public class OptionsMonitor<TOptions> : IDisposable, Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class, new()
public class OptionsMonitor<TOptions> : IDisposable, Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class
type OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
interface IOptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
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
type OptionsMonitor<'Options (requires 'Options : null)> = class
interface IOptionsMonitor<'Options (requires 'Options : null)>
interface IDisposable
Public Class OptionsMonitor(Of TOptions)
Implements IOptionsMonitor(Of TOptions)
Public Class OptionsMonitor(Of TOptions)
Implements IDisposable, IOptionsMonitor(Of TOptions)
Type Parameters
- TOptions
Options type.
- Inheritance
-
OptionsMonitor<TOptions>
- Implements
Constructors
Properties
CurrentValue |
The present value of the options. |
Methods
Dispose() |
Removes all change registration subscriptions. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get(String) |
Returns a configured |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
OnChange(Action<TOptions,String>) |
Registers a listener to be called whenever |
OnChange(Action<TOptions>) |
Registers a listener to be called whenever TOptions changes. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
OnChange<TOptions>(IOptionsMonitor<TOptions>, Action<TOptions>) |
Registers a listener to be called whenever |
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin