Collection.forAliasSync

Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'.

If @service is NULL, then secret_service_get_sync() will be called to get the default #SecretService proxy.

This method may block and should not be used in user interface threads.

class Collection
static
forAliasSync
(,
string alias_
,
SecretCollectionFlags flags
,
Cancellable cancellable
)

Parameters

service Service

a secret service object

alias_ string

the alias to lookup

flags SecretCollectionFlags

options for the collection initialization

cancellable Cancellable

optional cancellation object

Return Value

the collection, or %NULL if none assigned to the alias

Throws

GException on failure.

Meta