Skip to main content

GetNamedValues

Reads the named values with the given namespace from the vault.

Syntax

// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.NamedValueStorageOperations.GetNamedValues({
storage_type: 9 /* Enum: NamedValueType */,
namespace_name: "<namespace_name>",
});

Message

NameDescriptionType
storage_typeThe named value type to retrieve.NamedValueType
namespace_nameThe namespace from which the values are retrieved.string

Return type

NameDescriptionType
valuesReceives the found named values with the given type and namespace as JSON array (represented by MF_NamedValueArray struct).NamedValue[]

Example

{
"values": [] /* Array of NamedValue */
}