Class MetadataObject
Represents a JSON metadata object.
Implements
Inherited Members
Namespace: Unity.Cloud.Metadata
Assembly: solution.dll
Syntax
public class MetadataObject : MetadataContainer, IReadOnlyDictionary<string, MetadataContainer>, IReadOnlyCollection<KeyValuePair<string, MetadataContainer>>, IEnumerable<KeyValuePair<string, MetadataContainer>>, IEnumerable
Properties
Count
Gets the number of elements in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | The number of elements in the collection. |
this[string]
Gets the MetadataContainer with the specified key.
Declaration
public override MetadataContainer this[string key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | key |
Property Value
| Type | Description |
|---|---|
| MetadataContainer | The MetadataContainer with the specified key. |
Overrides
Keys
Gets an enumerable collection that contains the keys in the read-only dictionary.
Declaration
public IEnumerable<string> Keys { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> | An enumerable collection that contains the keys in the read-only dictionary. |
Values
Gets an enumerable collection that contains the values in the read-only dictionary.
Declaration
public IEnumerable<MetadataContainer> Values { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<MetadataContainer> | An enumerable collection that contains the values in the read-only dictionary. |
Methods
ContainsKey(string)
Determines whether the JSON object has the specified property name.
Declaration
public bool ContainsKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Name of the property. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetEnumerator()
Returns an enumerator that can be used to iterate through the collection.
Declaration
public IEnumerator<KeyValuePair<string, MetadataContainer>> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<KeyValuePair<string, MetadataContainer>> | A IEnumerator<T> that can be used to iterate through the collection. |
TryGetValue(string, out MetadataContainer)
Tries to get the MetadataContainer with the specified property name.
Declaration
public bool TryGetValue(string key, out MetadataContainer value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Name of the property. |
| MetadataContainer | value | The value. |
Returns
| Type | Description |
|---|---|
| bool |
|