Class BookmarkFile
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class BookmarkFile : BoxedRecord, IEquatable<BookmarkFile>
- Inheritance
-
BookmarkFile
- Implements
- Inherited Members
Constructors
BookmarkFile(BookmarkFileOwnedHandle)
public BookmarkFile(BookmarkFileOwnedHandle handle)
Parameters
handle
BookmarkFileOwnedHandle
Properties
Handle
public BookmarkFileOwnedHandle Handle { get; }
Property Value
Methods
AddApplication(string, string?, string?)
[Version("2.12")]
public void AddApplication(string uri, string? name, string? exec)
Parameters
AddGroup(string, string)
[Version("2.12")]
public void AddGroup(string uri, string group)
Parameters
Copy()
[Version("2.76")]
public BookmarkFile Copy()
Returns
Equals(BookmarkFile?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BookmarkFile? other)
Parameters
other
BookmarkFileAn 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
obj
objectThe object to compare with the current object.
Returns
ErrorQuark()
public static Quark ErrorQuark()
Returns
Free()
[Version("2.12")]
public void Free()
GetAdded(string)
[Version("2.12")]
public long GetAdded(string uri)
Parameters
uri
string
Returns
GetAddedDateTime(string)
[Version("2.66")]
public DateTime GetAddedDateTime(string uri)
Parameters
uri
string
Returns
GetAppInfo(string, string, out string, out uint, out long)
[Version("2.12")]
public bool GetAppInfo(string uri, string name, out string exec, out uint count, out long stamp)
Parameters
Returns
GetApplications(string, out nuint)
[Version("2.12")]
public string[] GetApplications(string uri, out nuint length)
Parameters
Returns
- string[]
GetDescription(string)
[Version("2.12")]
public string GetDescription(string uri)
Parameters
uri
string
Returns
GetGType()
public static Type GetGType()
Returns
GetGroups(string, out nuint)
[Version("2.12")]
public string[] GetGroups(string uri, out nuint length)
Parameters
Returns
- string[]
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetIcon(string, out string, out string)
[Version("2.12")]
public bool GetIcon(string uri, out string href, out string mimeType)
Parameters
Returns
GetIsPrivate(string)
[Version("2.12")]
public bool GetIsPrivate(string uri)
Parameters
uri
string
Returns
GetMimeType(string)
[Version("2.12")]
public string GetMimeType(string uri)
Parameters
uri
string
Returns
GetModified(string)
[Version("2.12")]
public long GetModified(string uri)
Parameters
uri
string
Returns
GetModifiedDateTime(string)
[Version("2.66")]
public DateTime GetModifiedDateTime(string uri)
Parameters
uri
string
Returns
GetSize()
[Version("2.12")]
public int GetSize()
Returns
GetTitle(string?)
[Version("2.12")]
public string GetTitle(string? uri)
Parameters
uri
string
Returns
GetUris(out nuint)
[Version("2.12")]
public string[] GetUris(out nuint length)
Parameters
length
nuint
Returns
- string[]
GetVisited(string)
[Version("2.12")]
public long GetVisited(string uri)
Parameters
uri
string
Returns
GetVisitedDateTime(string)
[Version("2.66")]
public DateTime GetVisitedDateTime(string uri)
Parameters
uri
string
Returns
HasApplication(string, string)
[Version("2.12")]
public bool HasApplication(string uri, string name)
Parameters
Returns
HasGroup(string, string)
[Version("2.12")]
public bool HasGroup(string uri, string group)
Parameters
Returns
HasItem(string)
[Version("2.12")]
public bool HasItem(string uri)
Parameters
uri
string
Returns
LoadFromData(Span<byte>)
[Version("2.12")]
public bool LoadFromData(Span<byte> data)
Parameters
Returns
LoadFromDataDirs(string, out string)
[Version("2.12")]
public bool LoadFromDataDirs(string file, out string fullPath)
Parameters
Returns
LoadFromFile(string)
[Version("2.12")]
public bool LoadFromFile(string filename)
Parameters
filename
string
Returns
MoveItem(string, string?)
[Version("2.12")]
public bool MoveItem(string oldUri, string? newUri)
Parameters
Returns
New()
[Version("2.12")]
public static BookmarkFile New()
Returns
RemoveApplication(string, string)
[Version("2.12")]
public bool RemoveApplication(string uri, string name)
Parameters
Returns
RemoveGroup(string, string)
[Version("2.12")]
public bool RemoveGroup(string uri, string group)
Parameters
Returns
RemoveItem(string)
[Version("2.12")]
public bool RemoveItem(string uri)
Parameters
uri
string
Returns
SetAdded(string, long)
[Version("2.12")]
public void SetAdded(string uri, long added)
Parameters
SetAddedDateTime(string, DateTime)
[Version("2.66")]
public void SetAddedDateTime(string uri, DateTime added)
Parameters
SetAppInfo(string, string, string, int, long)
[Version("2.12")]
public bool SetAppInfo(string uri, string name, string exec, int count, long stamp)
Parameters
Returns
SetApplicationInfo(string, string, string, int, DateTime?)
[Version("2.66")]
public bool SetApplicationInfo(string uri, string name, string exec, int count, DateTime? stamp)
Parameters
Returns
SetDescription(string?, string)
[Version("2.12")]
public void SetDescription(string? uri, string description)
Parameters
SetGroups(string, string[]?, nuint)
[Version("2.12")]
public void SetGroups(string uri, string[]? groups, nuint length)
Parameters
SetIcon(string, string?, string)
[Version("2.12")]
public void SetIcon(string uri, string? href, string mimeType)
Parameters
SetIsPrivate(string, bool)
[Version("2.12")]
public void SetIsPrivate(string uri, bool isPrivate)
Parameters
SetMimeType(string, string)
[Version("2.12")]
public void SetMimeType(string uri, string mimeType)
Parameters
SetModified(string, long)
[Version("2.12")]
public void SetModified(string uri, long modified)
Parameters
SetModifiedDateTime(string, DateTime)
[Version("2.66")]
public void SetModifiedDateTime(string uri, DateTime modified)
Parameters
SetTitle(string?, string)
[Version("2.12")]
public void SetTitle(string? uri, string title)
Parameters
SetVisited(string, long)
[Version("2.12")]
public void SetVisited(string uri, long visited)
Parameters
SetVisitedDateTime(string, DateTime)
[Version("2.66")]
public void SetVisitedDateTime(string uri, DateTime visited)
Parameters
ToFile(string)
[Version("2.12")]
public bool ToFile(string filename)
Parameters
filename
string