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