PostSharp6.4/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: 6.4.3.0 (6.4.3.0)
Syntax
C#
public bool ThrowObjectDisposedException { get; set; }

Property Value

Type: Boolean
See Also