Show / Hide Table of Contents

Class ScopedGCHandle

Original GCHandle that implement IDisposable

Inheritance
System.Object
ScopedGCHandle
Namespace: OpenCvSharp.Internal.Util
Assembly: OpenCvSharp.dll
Syntax
public sealed class ScopedGCHandle : IDisposable

Constructors

| Improve this Doc View Source

ScopedGCHandle(Object)

Constructor

Declaration
public ScopedGCHandle(object value)
Parameters
Type Name Description
System.Object value
| Improve this Doc View Source

ScopedGCHandle(Object, GCHandleType)

Constructor

Declaration
public ScopedGCHandle(object value, GCHandleType type)
Parameters
Type Name Description
System.Object value
System.Runtime.InteropServices.GCHandleType type

Properties

| Improve this Doc View Source

Handle

Declaration
public GCHandle Handle { get; }
Property Value
Type Description
System.Runtime.InteropServices.GCHandle
| Improve this Doc View Source

IsAllocated

Declaration
public bool IsAllocated { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Target

Declaration
public object Target { get; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Free()

Declaration
public void Free()
| Improve this Doc View Source

FromIntPtr(IntPtr)

Declaration
public static ScopedGCHandle FromIntPtr(IntPtr value)
Parameters
Type Name Description
IntPtr value
Returns
Type Description
ScopedGCHandle
| Improve this Doc View Source

ToIntPtr(ScopedGCHandle)

Declaration
public static IntPtr ToIntPtr(ScopedGCHandle value)
Parameters
Type Name Description
ScopedGCHandle value
Returns
Type Description
IntPtr
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX