IAutoCloseable IAutoCloseable Interface

Definition

Defines an interface for classes that can (or need to) be closed once they are not used any longer.

[Android.Runtime.Register("java/lang/AutoCloseable", "", "Java.Lang.IAutoCloseableInvoker", ApiSince=19)]
public interface IAutoCloseable : Android.Runtime.IJavaObject, IDisposable
type IAutoCloseable = interface
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Close() Close()

Closes the object and release any system resources it holds.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Applies to