MetadataProperty Class

 

Represents a metadata attribute for an item in the ADO.NET metadata hierarchy.

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System.Object
  System.Data.Metadata.Edm.MetadataItem
    System.Data.Metadata.Edm.MetadataProperty

public sealed class MetadataProperty : MetadataItem

NameDescription
System_CAPS_pubpropertyBuiltInTypeKind

Gets the built-in type kind for this MetadataProperty.(Overrides MetadataItem.BuiltInTypeKind.)

System_CAPS_pubpropertyDocumentation

Gets or sets the documentation associated with this type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyMetadataProperties

Gets the list of properties of the current type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyName

Gets the name of this MetadataProperty.

System_CAPS_pubpropertyPropertyKind

Gets the value of this PropertyKind.

System_CAPS_pubpropertyTypeUsage

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

System_CAPS_pubpropertyValue

Gets the value of this MetadataProperty.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

You can access every item in the ADO.NET metadata hierarchy as a strongly typed property bag. The EdmType class provides properties called Name, NamespaceName, and so on. The EdmType class also inherits a MetadataProperties property, which is a collection of MetadataProperty objects. When the application creates an instance of the EdmType class, the MetadataProperties property automatically contains a collection of MetadataProperty objects for Name property, NamespaceName property, and so on.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: