Table of Contents

Class PathBuf

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class PathBuf
Inheritance
PathBuf
Inherited Members

Constructors

PathBuf()

public PathBuf()

PathBuf(PathBufOwnedHandle)

public PathBuf(PathBufOwnedHandle handle)

Parameters

handle PathBufOwnedHandle

Properties

Handle

public PathBufOwnedHandle Handle { get; }

Property Value

PathBufOwnedHandle

Methods

Clear()

[Version("2.76")]
public void Clear()

ClearToPath()

[Version("2.76")]
public string? ClearToPath()

Returns

string

Copy()

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

Returns

PathBuf

Equal(IntPtr, IntPtr)

[Version("2.76")]
public static bool Equal(IntPtr v1, IntPtr v2)

Parameters

v1 IntPtr
v2 IntPtr

Returns

bool

Equals(PathBuf?)

public bool Equals(PathBuf? other)

Parameters

other PathBuf

Returns

bool

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Init()

[Version("2.76")]
public PathBuf Init()

Returns

PathBuf

InitFromPath(string?)

[Version("2.76")]
public PathBuf InitFromPath(string? path)

Parameters

path string

Returns

PathBuf

New()

[Version("2.76")]
public static PathBuf New()

Returns

PathBuf

NewFromPath(string?)

[Version("2.76")]
public static PathBuf NewFromPath(string? path)

Parameters

path string

Returns

PathBuf

Pop()

[Version("2.76")]
public bool Pop()

Returns

bool

Push(string)

[Version("2.76")]
public PathBuf Push(string path)

Parameters

path string

Returns

PathBuf

SetExtension(string?)

[Version("2.76")]
public bool SetExtension(string? extension)

Parameters

extension string

Returns

bool

SetFilename(string)

[Version("2.76")]
public bool SetFilename(string fileName)

Parameters

fileName string

Returns

bool

ToPath()

[Version("2.76")]
public string? ToPath()

Returns

string