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

Property Value

Type: Boolean
See Also