public readonly struct AutoDisposableSubscription<T>
where T : class, IAutoDisposableHolder
<ObsoleteAttribute("Types with embedded references are not supported in this version of your compiler.",
true)>
Public Structure AutoDisposableSubscription(Of T As {Class, IAutoDisposableHolder})
[ObsoleteAttribute(L"Types with embedded references are not supported in this version of your compiler.",
true)]
generic<typename T>
where T : ref class, IAutoDisposableHolder
public value class AutoDisposableSubscription
[<SealedAttribute>]
[<ObsoleteAttribute("Types with embedded references are not supported in this version of your compiler.",
true)>]
type AutoDisposableSubscription<'T when 'T : not struct and IAutoDisposableHolder> =
struct
inherit ValueType
end
AutoDisposableSubscriptionT | Создаёт подписку для указанного объекта. Не вызывает Subscribe. |
Target | Объект, для которого оформлена подписка. |
Equals | Indicates whether this instance and a specified object are equal. (Унаследован от ValueType) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
GetHashCode | Returns the hash code for this instance. (Унаследован от ValueType) |
GetType | Gets the Type of the current instance. (Унаследован от Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
ToString | Returns the fully qualified type name of this instance. (Унаследован от ValueType) |
Unsubscribe | Освобождает подписку, вызывает Unsubscribe для Target. Вызывайте метод ровно один раз в блоке try-finally. |