MetadataProperty.Create(String, TypeUsage, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The factory method for constructing the MetadataProperty object.
public static System.Data.Entity.Core.Metadata.Edm.MetadataProperty Create(string name, System.Data.Entity.Core.Metadata.Edm.TypeUsage typeUsage, object value);
static member Create : string * System.Data.Entity.Core.Metadata.Edm.TypeUsage * obj -> System.Data.Entity.Core.Metadata.Edm.MetadataProperty
Parameters
- name
- String
The name of the metadata property.
- typeUsage
- TypeUsage
The type usage of the metadata property.
- value
- Object
The value of the metadata property.
Returns
The MetadataProperty object.
Exceptions
Thrown typeUsage
is null
.
Remarks
The newly created MetadataProperty will be read only.