Class MetadataObject
Represents a JSON metadata object.
Inherited Members
Namespace: Unity.Cloud.Metadata
Syntax
public class MetadataObject : MetadataContainer, IReadOnlyDictionary<string, MetadataContainer>, IReadOnlyCollection<KeyValuePair<string, MetadataContainer>>, IEnumerable<KeyValuePair<string, MetadataContainer>>, IEnumerable
Properties
Count
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Implements
Item[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
Implements
Keys
Declaration
public IEnumerable<string> Keys { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<String> |
Implements
Values
Declaration
public IEnumerable<MetadataContainer> Values { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<MetadataContainer> |
Implements
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 |
|---|---|
| Boolean |
|
Implements
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. |
Implements
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 |
|---|---|
| Boolean |
|
Implements
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that can be used to iterate through the collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator | A IEnumerator<T> that can be used to iterate through the collection. |