SKObject Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a tracked native object.
public abstract class SKObject : SkiaSharp.SKNativeObject
- Inheritance
- Derived
Remarks
This object wraps a native handle and keeps track of it's lifetime for the garbage collector. For a simple object, use SKNativeObject.
Properties
Handle |
Gets or sets the handle to the underlying native object. |
IgnorePublicDispose |
Gets or sets a value indicating whether the call the public Dispose() should be no-op. (Inherited from SKNativeObject) |
IsDisposed |
Gets or sets a value indicating whether the object has already been disposed. (Inherited from SKNativeObject) |
OwnsHandle |
Gets a value indicating whether this object should destroy the underlying native object. |
OwnsHandle |
Gets or sets a value indicating whether this object owns it's handle and should destroy the native object when is is disposed. (Inherited from SKNativeObject) |
Methods
Dispose() |
Releases all resources used by this SKNativeObject. (Inherited from SKNativeObject) |
Dispose(Boolean) |
Releases the unmanaged resources used by the SKObject and optionally releases the managed resources. |
DisposeInternal() |
Triggers a dispose, ignoring the value of IgnorePublicDispose. (Inherited from SKNativeObject) |
DisposeManaged() |
Implemented by derived SKObject types to destroy any managed objects. |
DisposeManaged() |
Implemented by derived SKNativeObject types to destroy any managed objects. (Inherited from SKNativeObject) |
DisposeNative() |
Implemented by derived SKObject types to destroy any native objects. |
DisposeNative() |
Implemented by derived SKNativeObject types to destroy any native objects. (Inherited from SKNativeObject) |
DisposeUnownedManaged() | |
DisposeUnownedManaged() | (Inherited from SKNativeObject) |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈