Skip to main content

SetNamedValues

Stores the named values to the vault.

Syntax

// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.NamedValueStorageOperations.SetNamedValues({
storage_type: 9 /* Enum: NamedValueType */,
namespace_name: "<!< The namespace into which the values belong.>",
values: [] /* Array of NamedValue */,
required_existing_value: [] /* Array of NamedValue */,
});

Message

NameDescriptionType
storage_typeThe named value type to set.NamedValueType
namespace_nameThe namespace into which the values belong.string
valuesThe values to set as JSON array (represented by MF_NamedValueArray struct).NamedValue[]
required_existing_valueThe values that must exist in the database to allow the method to proceed. E_MFILES_PROBABLY_UPDATE_CONFLICT error is raised if the datbase has an unexepcted value.NamedValue[]

Return type

NameDescriptionType

Example

{}