PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Disposable­Attribute Class / Disposable­Attribute Properties / Disposable­Attribute.​Throw­Object­Disposed­Exception Property

DisposableAttribute.ThrowObjectDisposedException Property

Determines whether an ObjectDisposedException should be thrown when an attempt is made to access an object that has already been disposed.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
public bool ThrowObjectDisposedException { get; set; }

Property Value

Type: Boolean
See Also