Class SimplePermission
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class SimplePermission : Permission, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
SimplePermission
- Implements
- Inherited Members
Constructors
SimplePermission(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 SimplePermission(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SimplePermission(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SimplePermission(CreationData data)
Parameters
dataCreationData
SimplePermission(SimplePermissionHandle)
protected SimplePermission(SimplePermissionHandle handle)
Parameters
handleSimplePermissionHandle
Methods
GetGType()
public static Type GetGType()
Returns
New(bool)
[Version("2.26")]
public static SimplePermission New(bool allowed)
Parameters
allowedbool
Returns
NewFromPointer(nint, bool)
Creates a new managed SimplePermission instance for a given pointer.
public static SimplePermission NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SimplePermission and sets the properties specified by the construct arguments.
public static SimplePermission NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.