Share via


MetadataProperty Class

Definition

Class representing a metadata attribute for an item

public class MetadataProperty : System.Data.Entity.Core.Metadata.Edm.MetadataItem
type MetadataProperty = class
    inherit MetadataItem
Public Class MetadataProperty
Inherits MetadataItem
Inheritance
MetadataProperty

Properties

BuiltInTypeKind

Gets the built-in type kind for this MetadataProperty.

Documentation

Gets or sets the documentation associated with this type.

(Inherited from MetadataItem)
IsAnnotation

Gets a boolean that indicates whether the metadata property is an annotation.

MetadataProperties

Gets the list of properties of the current type.

(Inherited from MetadataItem)
Name

Gets the name of this MetadataProperty.

PropertyKind

Gets the value of this PropertyKind.

TypeUsage

Gets the instance of the TypeUsage class that contains both the type of this MetadataProperty and facets for the type.

Value

Gets the value of this MetadataProperty.

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
Create(String, TypeUsage, Object)

The factory method for constructing the MetadataProperty object.

CreateAnnotation(String, Object)

Creates a metadata annotation having the specified name and value.

RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)

Applies to