Class Resource
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class Resource : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Resource>, IDisposable
- Inheritance
-
Resource
- Implements
- Inherited Members
Constructors
Resource(ResourceOwnedHandle)
public Resource(ResourceOwnedHandle handle)
Parameters
handleResourceOwnedHandle
Properties
Handle
public ResourceOwnedHandle Handle { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
EnumerateChildren(string, ResourceLookupFlags)
[Version("2.32")]
public string[] EnumerateChildren(string path, ResourceLookupFlags lookupFlags)
Parameters
pathstringlookupFlagsResourceLookupFlags
Returns
- string[]
Equals(Resource?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Resource? other)
Parameters
otherResourceAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetInfo(string, ResourceLookupFlags, out nuint, out uint)
[Version("2.32")]
public bool GetInfo(string path, ResourceLookupFlags lookupFlags, out nuint size, out uint flags)
Parameters
pathstringlookupFlagsResourceLookupFlagssizenuintflagsuint
Returns
Load(string)
[Version("2.32")]
public static Resource Load(string filename)
Parameters
filenamestring
Returns
LookupData(string, ResourceLookupFlags)
[Version("2.32")]
public Bytes LookupData(string path, ResourceLookupFlags lookupFlags)
Parameters
pathstringlookupFlagsResourceLookupFlags
Returns
NewFromData(Bytes)
[Version("2.32")]
public static Resource NewFromData(Bytes data)
Parameters
dataBytes
Returns
OpenStream(string, ResourceLookupFlags)
[Version("2.32")]
public InputStream OpenStream(string path, ResourceLookupFlags lookupFlags)
Parameters
pathstringlookupFlagsResourceLookupFlags
Returns
Ref()
[Version("2.32")]
public Resource Ref()
Returns
Register()
[Version("2.32")]
public void Register()
Unref()
[Version("2.32")]
public void Unref()
Unregister()
[Version("2.32")]
public void Unregister()