Table of Contents

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

BookmarkFileOwnedHandle

Methods

AddApplication(string, string?, string?)

[Version("2.12")]
public void AddApplication(string uri, string? name, string? exec)

Parameters

uri string
name string
exec string

AddGroup(string, string)

[Version("2.12")]
public void AddGroup(string uri, string group)

Parameters

uri string
group string

Copy()

[Version("2.76")]
public BookmarkFile Copy()

Returns

BookmarkFile

Equals(BookmarkFile?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BookmarkFile? other)

Parameters

other BookmarkFile

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ErrorQuark()

public static Quark ErrorQuark()

Returns

Quark

Free()

[Version("2.12")]
public void Free()

GetAdded(string)

[Version("2.12")]
public long GetAdded(string uri)

Parameters

uri string

Returns

long

GetAddedDateTime(string)

[Version("2.66")]
public DateTime GetAddedDateTime(string uri)

Parameters

uri string

Returns

DateTime

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

uri string
name string
exec string
count uint
stamp long

Returns

bool

GetApplications(string, out nuint)

[Version("2.12")]
public string[] GetApplications(string uri, out nuint length)

Parameters

uri string
length nuint

Returns

string[]

GetDescription(string)

[Version("2.12")]
public string GetDescription(string uri)

Parameters

uri string

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetGroups(string, out nuint)

[Version("2.12")]
public string[] GetGroups(string uri, out nuint length)

Parameters

uri string
length nuint

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

uri string
href string
mimeType string

Returns

bool

GetIsPrivate(string)

[Version("2.12")]
public bool GetIsPrivate(string uri)

Parameters

uri string

Returns

bool

GetMimeType(string)

[Version("2.12")]
public string GetMimeType(string uri)

Parameters

uri string

Returns

string

GetModified(string)

[Version("2.12")]
public long GetModified(string uri)

Parameters

uri string

Returns

long

GetModifiedDateTime(string)

[Version("2.66")]
public DateTime GetModifiedDateTime(string uri)

Parameters

uri string

Returns

DateTime

GetSize()

[Version("2.12")]
public int GetSize()

Returns

int

GetTitle(string?)

[Version("2.12")]
public string GetTitle(string? uri)

Parameters

uri string

Returns

string

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

long

GetVisitedDateTime(string)

[Version("2.66")]
public DateTime GetVisitedDateTime(string uri)

Parameters

uri string

Returns

DateTime

HasApplication(string, string)

[Version("2.12")]
public bool HasApplication(string uri, string name)

Parameters

uri string
name string

Returns

bool

HasGroup(string, string)

[Version("2.12")]
public bool HasGroup(string uri, string group)

Parameters

uri string
group string

Returns

bool

HasItem(string)

[Version("2.12")]
public bool HasItem(string uri)

Parameters

uri string

Returns

bool

LoadFromData(Span<byte>)

[Version("2.12")]
public bool LoadFromData(Span<byte> data)

Parameters

data Span<byte>

Returns

bool

LoadFromDataDirs(string, out string)

[Version("2.12")]
public bool LoadFromDataDirs(string file, out string fullPath)

Parameters

file string
fullPath string

Returns

bool

LoadFromFile(string)

[Version("2.12")]
public bool LoadFromFile(string filename)

Parameters

filename string

Returns

bool

MoveItem(string, string?)

[Version("2.12")]
public bool MoveItem(string oldUri, string? newUri)

Parameters

oldUri string
newUri string

Returns

bool

New()

[Version("2.12")]
public static BookmarkFile New()

Returns

BookmarkFile

RemoveApplication(string, string)

[Version("2.12")]
public bool RemoveApplication(string uri, string name)

Parameters

uri string
name string

Returns

bool

RemoveGroup(string, string)

[Version("2.12")]
public bool RemoveGroup(string uri, string group)

Parameters

uri string
group string

Returns

bool

RemoveItem(string)

[Version("2.12")]
public bool RemoveItem(string uri)

Parameters

uri string

Returns

bool

SetAdded(string, long)

[Version("2.12")]
public void SetAdded(string uri, long added)

Parameters

uri string
added long

SetAddedDateTime(string, DateTime)

[Version("2.66")]
public void SetAddedDateTime(string uri, DateTime added)

Parameters

uri string
added DateTime

SetAppInfo(string, string, string, int, long)

[Version("2.12")]
public bool SetAppInfo(string uri, string name, string exec, int count, long stamp)

Parameters

uri string
name string
exec string
count int
stamp long

Returns

bool

SetApplicationInfo(string, string, string, int, DateTime?)

[Version("2.66")]
public bool SetApplicationInfo(string uri, string name, string exec, int count, DateTime? stamp)

Parameters

uri string
name string
exec string
count int
stamp DateTime

Returns

bool

SetDescription(string?, string)

[Version("2.12")]
public void SetDescription(string? uri, string description)

Parameters

uri string
description string

SetGroups(string, string[]?, nuint)

[Version("2.12")]
public void SetGroups(string uri, string[]? groups, nuint length)

Parameters

uri string
groups string[]
length nuint

SetIcon(string, string?, string)

[Version("2.12")]
public void SetIcon(string uri, string? href, string mimeType)

Parameters

uri string
href string
mimeType string

SetIsPrivate(string, bool)

[Version("2.12")]
public void SetIsPrivate(string uri, bool isPrivate)

Parameters

uri string
isPrivate bool

SetMimeType(string, string)

[Version("2.12")]
public void SetMimeType(string uri, string mimeType)

Parameters

uri string
mimeType string

SetModified(string, long)

[Version("2.12")]
public void SetModified(string uri, long modified)

Parameters

uri string
modified long

SetModifiedDateTime(string, DateTime)

[Version("2.66")]
public void SetModifiedDateTime(string uri, DateTime modified)

Parameters

uri string
modified DateTime

SetTitle(string?, string)

[Version("2.12")]
public void SetTitle(string? uri, string title)

Parameters

uri string
title string

SetVisited(string, long)

[Version("2.12")]
public void SetVisited(string uri, long visited)

Parameters

uri string
visited long

SetVisitedDateTime(string, DateTime)

[Version("2.66")]
public void SetVisitedDateTime(string uri, DateTime visited)

Parameters

uri string
visited DateTime

ToFile(string)

[Version("2.12")]
public bool ToFile(string filename)

Parameters

filename string

Returns

bool