Table of Contents

Class ContentSerializer

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class ContentSerializer : Object, AsyncResult, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
ContentSerializer
Implements
Inherited Members

Constructors

ContentSerializer(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ContentSerializer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ContentSerializer(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ContentSerializer(CreationData data)

Parameters

data CreationData

ContentSerializer(ContentSerializerHandle)

protected ContentSerializer(ContentSerializerHandle handle)

Parameters

handle ContentSerializerHandle

Methods

GetCancellable()

public Cancellable? GetCancellable()

Returns

Cancellable

GetGType()

public static Type GetGType()

Returns

Type

GetGtype()

public Type GetGtype()

Returns

Type

GetMimeType()

public string GetMimeType()

Returns

string

GetOutputStream()

public OutputStream GetOutputStream()

Returns

OutputStream

GetPriority()

public int GetPriority()

Returns

int

GetTaskData()

public nint GetTaskData()

Returns

nint

GetUserData()

public nint GetUserData()

Returns

nint

GetValue()

public Value GetValue()

Returns

Value

IsTagged(nint)

[Version("2.34")]
public bool IsTagged(nint sourceTag)

Parameters

sourceTag nint

Returns

bool

LegacyPropagateError()

[Version("2.34")]
public bool LegacyPropagateError()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed ContentSerializer instance for a given pointer.

public static ContentSerializer NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ContentSerializer

NewWithProperties(ConstructArgument[])

Creates a new ContentSerializer and sets the properties specified by the construct arguments.

public static ContentSerializer NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ContentSerializer

ReturnError(Error)

public void ReturnError(Error error)

Parameters

error Error

ReturnSuccess()

public void ReturnSuccess()