Class MatchCollection
Represents the sets of successful metadata matches found by a query.
Inherited Members
Namespace: Unity.Cloud.Metadata
Syntax
public class MatchCollection : IReadOnlyDictionary<InstanceId, MetadataObject>, IReadOnlyCollection<KeyValuePair<InstanceId, MetadataObject>>, IEnumerable<KeyValuePair<InstanceId, MetadataObject>>, IEnumerable
Properties
Count
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Implements
Item[InstanceId]
Declaration
public MetadataObject this[InstanceId key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| InstanceId | key |
Property Value
| Type | Description |
|---|---|
| MetadataObject |
Implements
Keys
Declaration
public IEnumerable<InstanceId> Keys { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<InstanceId> |
Implements
Values
Declaration
public IEnumerable<MetadataObject> Values { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<MetadataObject> |
Implements
Methods
ContainsKey(InstanceId)
Determines whether the owner ID appears in the match collection.
Declaration
public bool ContainsKey(InstanceId key)
Parameters
| Type | Name | Description |
|---|---|---|
| InstanceId | key | The ownerId |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Implements
GetEnumerator()
Returns an enumerator that can be used to iterate through the collection.
Declaration
public IEnumerator<KeyValuePair<InstanceId, MetadataObject>> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<KeyValuePair<InstanceId, MetadataObject>> | A IEnumerator<T> that can be used to iterate through the collection. |
Implements
TryGetValue(InstanceId, out MetadataObject)
Tries to get the MetadataObject with the specified ownerId.
Declaration
public bool TryGetValue(InstanceId key, out MetadataObject value)
Parameters
| Type | Name | Description |
|---|---|---|
| InstanceId | key | The ownerId. |
| MetadataObject | 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. |