ODataMessageReader.ReadMetadataDocument 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.
Overloads
ReadMetadataDocument() |
Reads the message body as metadata document. It can read JSON/XML CSDL based on the content type. |
ReadMetadataDocument(CsdlReaderSettingsBase) |
Reads the message body as metadata document. It can read CSDL based on the content type using the given settings. Be NOTED: If the setting is not related to the metadata format, it will be ignored. |
ReadMetadataDocument(Func<Uri,XmlReader>) |
Reads the message body as metadata document. |
ReadMetadataDocument()
Reads the message body as metadata document. It can read JSON/XML CSDL based on the content type.
public Microsoft.OData.Edm.IEdmModel ReadMetadataDocument ();
member this.ReadMetadataDocument : unit -> Microsoft.OData.Edm.IEdmModel
Public Function ReadMetadataDocument () As IEdmModel
Returns
Returns IEdmModel.
Applies to
ReadMetadataDocument(CsdlReaderSettingsBase)
Reads the message body as metadata document. It can read CSDL based on the content type using the given settings. Be NOTED: If the setting is not related to the metadata format, it will be ignored.
public Microsoft.OData.Edm.IEdmModel ReadMetadataDocument (Microsoft.OData.Edm.Csdl.CsdlReaderSettingsBase csdlReaderSettings);
member this.ReadMetadataDocument : Microsoft.OData.Edm.Csdl.CsdlReaderSettingsBase -> Microsoft.OData.Edm.IEdmModel
Public Function ReadMetadataDocument (csdlReaderSettings As CsdlReaderSettingsBase) As IEdmModel
Parameters
- csdlReaderSettings
- CsdlReaderSettingsBase
The given CSDL reader settings.
Returns
Returns IEdmModel.
Applies to
ReadMetadataDocument(Func<Uri,XmlReader>)
Reads the message body as metadata document.
public Microsoft.OData.Edm.IEdmModel ReadMetadataDocument (Func<Uri,System.Xml.XmlReader> getReferencedModelReaderFunc);
member this.ReadMetadataDocument : Func<Uri, System.Xml.XmlReader> -> Microsoft.OData.Edm.IEdmModel
Public Function ReadMetadataDocument (getReferencedModelReaderFunc As Func(Of Uri, XmlReader)) As IEdmModel
Parameters
The function to load referenced model xml. If null, will stop loading the referenced models. Normally it should throw no exception.
Returns
Returns IEdmModel.
Remarks
User should handle the disposal of XmlReader created by getReferencedModelReaderFunc.