Property DefinedTags
DefinedTags
Declaration
public IDictionary<string, IDictionary<string, string>> DefinedTags { get; }
Property Value
Type | Description |
---|---|
IDictionary<String, IDictionary<String, String>> | Namespace-scoped dictionary of defined tags. If set for an on-premises service, they are silently ignored. |
Remarks
See chapter Tagging Overview in Oracle Cloud Infrastructure documentation. Defined tags represent metadata managed by an administrator. Users can apply these tags to a table by identifying the tag and supplying its value.
Each defined tag belongs to a namespace, where a namespace serves as a container for tag keys. The type of DefinedTags is a compound dictionary, with outer dictionary keys representing tag namespaces and the inner dictionary representing tag keys and values for a particular namespace.
Defined tags are used only in these cases: table creation operations executed by ExecuteTableDDLAsync or ExecuteTableDDLWithCompletionAsync with CREATE TABLE SQL statement and table tag modification operations executed by SetTableTagsAsync(String, IDictionary<String, IDictionary<String, String>>, IDictionary<String, String>, TableDDLOptions, CancellationToken) or SetTableTagsWithCompletionAsync(String, IDictionary<String, IDictionary<String, String>>, IDictionary<String, String>, TableDDLOptions, CancellationToken). They are not used for other table DDL operations.
Examples
Specifying defined tags.var options = new TableDDLOptions
{
DefinedTags = new Dictionary<string, IDictionary<string, string>>
{
["Oracle-Tags"] = new Dictionary<string, string>
{
["CreatedBy"] = "NosqlUser",
["CreatedOn"] = "2023-01-01T00:00:00Z"
}
}
};