Struct MetadataPathCollection
Represents a strongly typed collection of MetadataPath. Provides methods to enumerate the paths in the collection.
Inherited Members
Namespace: Unity.Cloud.Metadata
Assembly: Unity.Cloud.Metadata.dll
Syntax
public readonly struct MetadataPathCollection : IEnumerable<MetadataPath>, IEnumerable
Remarks
Allow to limit the returned Properties to a specific set of keys with Select(MetadataPathCollection).
Constructors
MetadataPathCollection(IEnumerable<string>)
Constructor with the set of MetadataPaths.
Declaration
public MetadataPathCollection(IEnumerable<string> paths)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | paths | Properties paths. |
MetadataPathCollection(params string[])
Constructor with the set of MetadataPaths.
Declaration
public MetadataPathCollection(params string[] paths)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | paths | Properties paths. |
Properties
All
If given to Select(MetadataPathCollection), the query will return all the fields path available in the dataset.
Declaration
public static MetadataPathCollection All { get; }
Property Value
| Type | Description |
|---|---|
| MetadataPathCollection |
None
If given to Select(MetadataPathCollection), the query will return no fields path in the Properties, only the Id and its other fields will be returned.
Declaration
public static MetadataPathCollection None { get; }
Property Value
| Type | Description |
|---|---|
| MetadataPathCollection |
Methods
GetEnumerator()
Declaration
public IEnumerator<MetadataPath> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<MetadataPath> |