Show / Hide Table of Contents

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 Source

MetadataDefinition(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 Source

AppliesTo

Declaration
public AppliesToEnum AppliesTo { get; }
Property Value
Type Description
AppliesToEnum
View Source

Name

Gets the name to use to retrieve the metadata value.

Declaration
public string Name { get; }
Property Value
Type Description
System.String
View Source

Query

Gets the query to execute.

Declaration
public object Query { get; }
Property Value
Type Description
System.Object
View Source

QueryType

Gets the query type to use to map the metadata.

Declaration
public QueryType QueryType { get; }
Property Value
Type Description
QueryType
View Source

Source

Gets the metadata source, such as a file name.

Declaration
public string Source { get; }
Property Value
Type Description
System.String

Methods

View Source

Equals(MetadataDefinition)

Declaration
public bool Equals(MetadataDefinition other)
Parameters
Type Name Description
MetadataDefinition other
Returns
Type Description
System.Boolean
View Source

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>
  • View Source
In This Article
Back to top Generated by DocFX