public sealed class ScopeHolderContext : IScopeHolderContext,
IDisposablePublic NotInheritable Class ScopeHolderContext
Implements IScopeHolderContext, IDisposablepublic ref class ScopeHolderContext sealed : IScopeHolderContext,
IDisposable[<SealedAttribute>]
type ScopeHolderContext =
class
interface IScopeHolderContext
interface IDisposable
end| ScopeHolderContext | Инициализирует новый экземпляр класса ScopeHolderContext |
| Current | Текущий контекст IScopeHolderContext. Возвращает null, если контекст отсутствует. |
| HasCurrent | Признак того, что текущий код выполняется внутри операции с контекстом IScopeHolderContext, а свойство Current ссылается на null. |
| Create | Создаёт область удержания доступных контекстов IScopeHolderContext. Если область уже создана, то она не создаётся повторно. Обязательно заключите в await using результат вызова метода. |
| Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
| GetHashCode | Serves as the default hash function. (Унаследован от Object) |
| GetType | Gets the Type of the current instance. (Унаследован от Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
| Set | Устанавливает объект, удерживаемый в контексте для заданного типа, или null, если объект удаляется. |
| ToString | Returns a string that represents the current object. (Унаследован от Object) |
| TryGet | Возвращает объект, удерживаемый в контексте для заданного типа, или null, если объект отсутствует. |