You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<SchemaNamespace="microsoft.graph"> <!--NOTE: the namespace that declares the Dictionary complex type *must* be microsoft.graph-->
47
+
<ComplexTypeName="Dictionary"OpenType="true">
48
+
<AnnotationTerm="Core.Description"String="A dictionary of name-value pairs. Names must be valid property names, values may be restricted to a list of types via an annotation with term `Validation.OpenPropertyTypeConstraint`." />
Dictionaries are represented in JSON payloads as a JSON object, where the property names are comprised of the keys and their values are the corresponding key values.
65
77
66
78
The following example shows reading an item with a dictionary property named "userTags":
@@ -80,7 +92,7 @@ Response:
80
92
}
81
93
```
82
94
83
-
### Setting a dictionary value
95
+
####Setting a dictionary value
84
96
The following example shows setting a dictionary value. If "hairColor" already exists, it is updated, otherwise it is added.
85
97
86
98
```http
@@ -92,7 +104,7 @@ PATCH /item/userTags
92
104
}
93
105
```
94
106
95
-
### Deleting a dictionary value
107
+
####Deleting a dictionary value
96
108
A dictionary value can be removed by setting the value to null.
97
109
```http
98
110
PATCH /item/userTags
@@ -103,34 +115,43 @@ PATCH /item/userTags
103
115
}
104
116
```
105
117
106
-
### Declaring a complex typed dictionary
118
+
### Complex typed dictionary
119
+
120
+
#### CSDL declaration
107
121
Dictionaries can also contain complex types whose values may be constrained to a particular set of complex types.
108
122
109
123
The following example defines a complex type **roleSettings**, an **assignedRoleGroupDictionary** that contains **roleSettings**, and an **assignedRoles** property that uses the dictionary..
<SchemaNamespace="microsoft.graph"> <!--NOTE: the namespace that declares the Dictionary complex type *must* be microsoft.graph-->
127
+
<ComplexTypeName="Dictionary"OpenType="true">
128
+
<AnnotationTerm="Core.Description"String="A dictionary of name-value pairs. Names must be valid property names, values may be restricted to a list of types via an annotation with term `Validation.OpenPropertyTypeConstraint`." />
0 commit comments