Class Collection
- Namespace
- Secret
- Assembly
- Secret-1.dll
public class Collection : DBusProxy, AsyncInitable, DBusInterface, Initable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Collection
- Implements
- Inherited Members
Constructors
Collection(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 Collection(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Collection(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Collection(CreationData data)
Parameters
dataCreationData
Collection(CollectionHandle)
protected Collection(CollectionHandle handle)
Parameters
handleCollectionHandle
Fields
CreatedPropertyDefinition
public static readonly Property<ulong, Collection> CreatedPropertyDefinition
Field Value
FlagsPropertyDefinition
public static readonly Property<CollectionFlags, Collection> FlagsPropertyDefinition
Field Value
LabelPropertyDefinition
public static readonly Property<string?, Collection> LabelPropertyDefinition
Field Value
LockedPropertyDefinition
public static readonly Property<bool, Collection> LockedPropertyDefinition
Field Value
ModifiedPropertyDefinition
public static readonly Property<ulong, Collection> ModifiedPropertyDefinition
Field Value
ServicePropertyDefinition
public static readonly Property<Service?, Collection> ServicePropertyDefinition
Field Value
Properties
Created
public ulong Created { get; set; }
Property Value
Flags
public CollectionFlags Flags { get; }
Property Value
Label
public string? Label { get; set; }
Property Value
Locked
public bool Locked { get; }
Property Value
Modified
public ulong Modified { get; set; }
Property Value
Service
public Service? Service { get; }
Property Value
Methods
CreateFinish(AsyncResult)
public static Collection CreateFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
CreateSync(Service?, string, string?, CollectionCreateFlags, Cancellable?)
public static Collection CreateSync(Service? service, string label, string? alias, CollectionCreateFlags flags, Cancellable? cancellable)
Parameters
serviceServicelabelstringaliasstringflagsCollectionCreateFlagscancellableCancellable
Returns
DeleteFinish(AsyncResult)
public bool DeleteFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
DeleteSync(Cancellable?)
public bool DeleteSync(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
DupObject()
[Version("2.32")]
public DBusObject? DupObject()
Returns
ForAliasFinish(AsyncResult)
public static Collection? ForAliasFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ForAliasSync(Service?, string, CollectionFlags, Cancellable?)
public static Collection? ForAliasSync(Service? service, string alias, CollectionFlags flags, Cancellable? cancellable)
Parameters
serviceServicealiasstringflagsCollectionFlagscancellableCancellable
Returns
GetCreated()
public ulong GetCreated()
Returns
GetFlags()
public CollectionFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetItems()
public List GetItems()
Returns
GetLabel()
public string GetLabel()
Returns
GetLocked()
public bool GetLocked()
Returns
GetModified()
public ulong GetModified()
Returns
GetObject()
[Version("2.30")]
public DBusObject? GetObject()
Returns
GetService()
public Service GetService()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
InitFinish(AsyncResult)
[Version("2.22")]
public bool InitFinish(AsyncResult res)
Parameters
resAsyncResult
Returns
LoadItemsFinish(AsyncResult)
public bool LoadItemsFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
LoadItemsSync(Cancellable?)
public bool LoadItemsSync(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
NewForDbusPathFinish(AsyncResult)
public static Collection NewForDbusPathFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
NewForDbusPathSync(Service?, string, CollectionFlags, Cancellable?)
public static Collection NewForDbusPathSync(Service? service, string collectionPath, CollectionFlags flags, Cancellable? cancellable)
Parameters
serviceServicecollectionPathstringflagsCollectionFlagscancellableCancellable
Returns
NewFromPointer(nint, bool)
Creates a new managed Collection instance for a given pointer.
public static Collection NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Collection and sets the properties specified by the construct arguments.
public static Collection NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Refresh()
public void Refresh()
SearchFinish(AsyncResult)
public List SearchFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SearchForDbusPathsFinish(AsyncResult)
public string[] SearchForDbusPathsFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
- string[]
SearchForDbusPathsSync(Schema?, HashTable, Cancellable?)
public string[] SearchForDbusPathsSync(Schema? schema, HashTable attributes, Cancellable? cancellable)
Parameters
schemaSchemaattributesHashTablecancellableCancellable
Returns
- string[]
SearchSync(Schema?, HashTable, SearchFlags, Cancellable?)
public List SearchSync(Schema? schema, HashTable attributes, SearchFlags flags, Cancellable? cancellable)
Parameters
schemaSchemaattributesHashTableflagsSearchFlagscancellableCancellable
Returns
SetLabelFinish(AsyncResult)
public bool SetLabelFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetLabelSync(string, Cancellable?)
public bool SetLabelSync(string label, Cancellable? cancellable)
Parameters
labelstringcancellableCancellable
Returns
SetObject(DBusObject?)
[Version("2.30")]
public void SetObject(DBusObject? @object)
Parameters
objectDBusObject