Class MetadataSearchCriteria
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public sealed class MetadataSearchCriteria : BaseSearchCriteria
Constructors
MetadataSearchCriteria(string, string)
Declaration
public MetadataSearchCriteria(string propertyName, string searchKey)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | |
string | searchKey |
Methods
Clear()
Clears the criteria fields.
Declaration
public override void Clear()
Overrides
WithFuzzyValue(string, string)
Sets the value of the metadata string field.
Declaration
public void WithFuzzyValue(string metadataFieldKey, string value)
Parameters
Type | Name | Description |
---|---|---|
string | metadataFieldKey | The key of the metadata field. |
string | value | The approximate value of the string field. |
WithValue(string, string, SearchOptions)
Sets the value of the metadata string field.
Declaration
public void WithValue(string metadataFieldKey, string value, StringSearchCriteria.SearchOptions options)
Parameters
Type | Name | Description |
---|---|---|
string | metadataFieldKey | The key of the metadata field. |
string | value | The expected value of the string field. |
StringSearchCriteria.SearchOptions | options | The search options. |
WithValue(string, Regex)
Sets the value of the metadata string field.
Declaration
public void WithValue(string metadataFieldKey, Regex pattern)
Parameters
Type | Name | Description |
---|---|---|
string | metadataFieldKey | The key of the metadata field. |
Regex | pattern | The expected pattern of the string field. |
WithValue(string, MetadataValue)
Sets the value of the metadata field.
Declaration
public void WithValue(string metadataFieldKey, MetadataValue value)
Parameters
Type | Name | Description |
---|---|---|
string | metadataFieldKey | The key of the metadata field. |
MetadataValue | value | The expected value of the field. |