Delen via


EdmTerm Class

Definition

Represents an EDM term.

public class EdmTerm : Microsoft.OData.Edm.EdmNamedElement, Microsoft.OData.Edm.IEdmFullNamedElement, Microsoft.OData.Edm.Vocabularies.IEdmTerm
type EdmTerm = class
    inherit EdmNamedElement
    interface IEdmTerm
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
    interface IEdmFullNamedElement
Public Class EdmTerm
Inherits EdmNamedElement
Implements IEdmFullNamedElement, IEdmTerm
Inheritance
Implements

Constructors

EdmTerm(String, String, EdmPrimitiveTypeKind)

Initializes a new instance of EdmTerm class. The new term will be of the nullable primitive type.

EdmTerm(String, String, EdmPrimitiveTypeKind, String)

Initializes a new instance of EdmTerm class. The new term will be of the nullable primitive type.

EdmTerm(String, String, IEdmTypeReference)

Initializes a new instance of the EdmTerm class.

EdmTerm(String, String, IEdmTypeReference, String)

Initializes a new instance of the EdmTerm class.

EdmTerm(String, String, IEdmTypeReference, String, String)

Initializes a new instance of the EdmTerm class.

Properties

AppliesTo

Gets the AppliesTo of this term.

DefaultValue

Gets the DefaultValue of this term.

FullName

Gets the full name of this schema element.

Name

Gets the name of this element.

(Inherited from EdmNamedElement)
Namespace

Gets the namespace of this term.

SchemaElementKind

Gets the schema element kind of this term.

Type

Gets the type of this term.

Extension Methods

GetSymbolicString(IEdmVocabularyAnnotatable)

Gets the symbolic string of an annotated element. In the next breaking change, it's better to add a property into IEdmVocabularyAnnotatable.

FullName(IEdmSchemaElement)

Gets the full name of the element.

Location(IEdmElement)

Gets the location of this element.

ShortQualifiedName(IEdmSchemaElement)

Gets the Short Qualified name of the element.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

Gets an annotatable element's vocabulary annotations as seen from a particular model.

ToTraceString(IEdmSchemaElement)

Returns the text representation of the current object.

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

Applies to