Class MetadataDefinition
Represents a piece of metadata to extract by querying a source.
Inheritance
System.Object
MetadataDefinition
Implements
System.IEquatable<MetadataDefinition>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CrashCABN.Metadata
Assembly: CrashCABN.Metadata.Abstractions.dll
Syntax
public sealed class MetadataDefinition : IEquatable<MetadataDefinition>
Constructors
View SourceMetadataDefinition(Object, QueryType, String, String, AppliesToEnum)
Initializes a new instance of the MetadataDefinition class.
Declaration
public MetadataDefinition(object query, QueryType queryType, string name = "", string source = null, AppliesToEnum appliesTo = AppliesToEnum.Both)
Parameters
Type | Name | Description |
---|---|---|
System.Object | query | The query to execute. |
QueryType | queryType | The query type to use to map the metadata. |
System.String | name | The name of the property the value will be assigned to. |
System.String | source | The metadata source, such as a file name. |
AppliesToEnum | appliesTo | The work item type(s) the data should be applied to. |
Properties
View SourceAppliesTo
Declaration
public AppliesToEnum AppliesTo { get; }
Property Value
Type | Description |
---|---|
AppliesToEnum |
Name
Gets the name to use to retrieve the metadata value.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Query
Gets the query to execute.
Declaration
public object Query { get; }
Property Value
Type | Description |
---|---|
System.Object |
QueryType
Gets the query type to use to map the metadata.
Declaration
public QueryType QueryType { get; }
Property Value
Type | Description |
---|---|
QueryType |
Source
Gets the metadata source, such as a file name.
Declaration
public string Source { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceEquals(MetadataDefinition)
Declaration
public bool Equals(MetadataDefinition other)
Parameters
Type | Name | Description |
---|---|---|
MetadataDefinition | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>