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
constructArgumentsConstructArgument[]
Credentials(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Credentials(CreationData data)
Parameters
dataCreationData
Credentials(CredentialsHandle)
protected Credentials(CredentialsHandle handle)
Parameters
handleCredentialsHandle
Methods
GetGType()
public static Type GetGType()
Returns
GetNative(CredentialsType)
[Version("2.26")]
public nint GetNative(CredentialsType nativeType)
Parameters
nativeTypeCredentialsType
Returns
GetUnixPid()
[Version("2.36")]
public int GetUnixPid()
Returns
GetUnixUser()
[Version("2.26")]
public uint GetUnixUser()
Returns
IsSameUser(Credentials)
[Version("2.26")]
public bool IsSameUser(Credentials otherCredentials)
Parameters
otherCredentialsCredentials
Returns
New()
[Version("2.26")]
public static Credentials New()
Returns
NewFromPointer(nint, bool)
Creates a new managed Credentials instance for a given pointer.
public static Credentials NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Credentials and sets the properties specified by the construct arguments.
public static Credentials NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetNative(CredentialsType, nint)
[Version("2.26")]
public void SetNative(CredentialsType nativeType, nint native)
Parameters
nativeTypeCredentialsTypenativenint
SetUnixUser(uint)
[Version("2.26")]
public bool SetUnixUser(uint uid)
Parameters
uiduint
Returns
ToString()
[Version("2.26")]
public string ToString()