Table of Contents

Class Credentials

Namespace
Gio
Assembly
Gio-2.0.dll
public class Credentials : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Credentials
Implements
Inherited Members

Constructors

Credentials(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 Credentials(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Credentials(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Credentials(CreationData data)

Parameters

data CreationData

Credentials(CredentialsHandle)

protected Credentials(CredentialsHandle handle)

Parameters

handle CredentialsHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetNative(CredentialsType)

[Version("2.26")]
public nint GetNative(CredentialsType nativeType)

Parameters

nativeType CredentialsType

Returns

nint

GetUnixPid()

[Version("2.36")]
public int GetUnixPid()

Returns

int

GetUnixUser()

[Version("2.26")]
public uint GetUnixUser()

Returns

uint

IsSameUser(Credentials)

[Version("2.26")]
public bool IsSameUser(Credentials otherCredentials)

Parameters

otherCredentials Credentials

Returns

bool

New()

[Version("2.26")]
public static Credentials New()

Returns

Credentials

NewFromPointer(nint, bool)

Creates a new managed Credentials instance for a given pointer.

public static Credentials NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Credentials

NewWithProperties(ConstructArgument[])

Creates a new Credentials and sets the properties specified by the construct arguments.

public static Credentials NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Credentials

SetNative(CredentialsType, nint)

[Version("2.26")]
public void SetNative(CredentialsType nativeType, nint native)

Parameters

nativeType CredentialsType
native nint

SetUnixUser(uint)

[Version("2.26")]
public bool SetUnixUser(uint uid)

Parameters

uid uint

Returns

bool

ToString()

[Version("2.26")]
public string ToString()

Returns

string