Table of Contents

Class NullableUtf8StringOwnedHandle

Namespace
GLib.Internal
Assembly
GLib-2.0.dll

Represents an owned nullable utf8 string. If an instance of this class is collected by the garbage collecctor the associated memory is freed.

public class NullableUtf8StringOwnedHandle : NullableUtf8StringHandle, IDisposable
Inheritance
NullableUtf8StringOwnedHandle
Implements
Inherited Members

Methods

Create(string?)

Creates a nullable utf8 string handle for the given string.

public static NullableUtf8StringOwnedHandle Create(string? s)

Parameters

s string

The string which should be used to create the handle.

Returns

NullableUtf8StringOwnedHandle

A nullable utf8 string handle

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

protected override bool ReleaseHandle()

Returns

bool

true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed Managed Debugging Assistant.