OPC Studio User's Guide and Reference
DisposeGuard Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > DisposableObject Class : DisposeGuard Method
Invokes the specified function if the object is not disposed, throwing an exception otherwise.
Overload List
OverloadDescription
Invokes the specified function if the object is not disposed, throwing an exception otherwise.  
Invokes the specified function if the object is not disposed, optionally throwing an exception otherwise.  
Invokes the specified action if the object is not disposed, throwing an exception otherwise.  
Invokes the specified action if the object is not disposed, optionally throwing an exception otherwise.  
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also