Interface IMetadataCollection
Represents a collection of metadata
Inherited Members
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.Add(System.String, Snowflake.Model.Records.IRecordMetadata)
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.ContainsKey(System.String)
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.Remove(System.String)
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.TryGetValue(System.String, Snowflake.Model.Records.IRecordMetadata)
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.Item[System.String]
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.Keys
System.Collections.Generic.IDictionary<System.String, Snowflake.Model.Records.IRecordMetadata>.Values
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.Add(System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.Clear()
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.Contains(System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>[], System.Int32)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.Remove(System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>)
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.Count
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.IsReadOnly
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, Snowflake.Model.Records.IRecordMetadata>>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
Namespace: Snowflake.Model.Records
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IMetadataCollection : IDictionary<string, IRecordMetadata>, ICollection<KeyValuePair<string, IRecordMetadata>>, IEnumerable<KeyValuePair<string, IRecordMetadata>>, IEnumerable
Properties
Item[Guid]
Gets a metadata with its guid
Declaration
IRecordMetadata this[Guid guid] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
guid | The guid of the metadata |
Property Value
Type | Description |
---|---|
IRecord |
The requested metadata |
Item[String]
The value of this metadata. If you want to get the raw records, enumerate System.Collections.Generic.IDictionary<TKey, TValue>.Values
If the request key does not exist, returns null. If the value is set to null, removes the value.
Declaration
string this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The metadata key |
Property Value
Type | Description |
---|---|
System. |
The value of the metadata |
Record
Gets the record guid this metadata collection is set to.
Declaration
Guid Record { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Add(IRecordMetadata)
Adds a metadata value
Declaration
void Add(IRecordMetadata recordMetadata)
Parameters
Type | Name | Description |
---|---|---|
IRecord |
recordMetadata | The value to add |
Add(IDictionary<String, IRecordMetadata>)
Copy the metadata of one collection to another, changing the guid of the metadata.
Declaration
void Add(IDictionary<string, IRecordMetadata> existingMetadata)
Parameters
Type | Name | Description |
---|---|---|
System. |
existingMetadata | The existing metadata |
Add(String, String)
Adds a record metadata with the specified key and value
Declaration
void Add(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key of the metadata |
System. |
value | The value of the metadata |