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
constructArgumentsConstructArgument[]
ContentSerializer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ContentSerializer(CreationData data)
Parameters
dataCreationData
ContentSerializer(ContentSerializerHandle)
protected ContentSerializer(ContentSerializerHandle handle)
Parameters
handleContentSerializerHandle
Methods
GetCancellable()
public Cancellable? GetCancellable()
Returns
GetGType()
public static Type GetGType()
Returns
GetGtype()
public Type GetGtype()
Returns
GetMimeType()
public string GetMimeType()
Returns
GetOutputStream()
public OutputStream GetOutputStream()
Returns
GetPriority()
public int GetPriority()
Returns
GetTaskData()
public nint GetTaskData()
Returns
GetUserData()
public nint GetUserData()
Returns
GetValue()
public Value GetValue()
Returns
IsTagged(nint)
[Version("2.34")]
public bool IsTagged(nint sourceTag)
Parameters
sourceTagnint
Returns
LegacyPropagateError()
[Version("2.34")]
public bool LegacyPropagateError()
Returns
NewFromPointer(nint, bool)
Creates a new managed ContentSerializer instance for a given pointer.
public static ContentSerializer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ContentSerializer and sets the properties specified by the construct arguments.
public static ContentSerializer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ReturnError(Error)
public void ReturnError(Error error)
Parameters
errorError
ReturnSuccess()
public void ReturnSuccess()