ODataMessageReaderSettings.EnableWcfDataServicesClientBehavior Method (Func<IEdmType, String, IEdmType>, String, String, Func<ODataEntry, XmlReader, Uri, XmlReader>)
Enables the WCF data services client behavior.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub EnableWcfDataServicesClientBehavior ( _
typeResolver As Func(Of IEdmType, String, IEdmType), _
odataNamespace As String, _
typeScheme As String, _
entryXmlCustomizationCallback As Func(Of ODataEntry, XmlReader, Uri, XmlReader) _
)
'Usage
Dim instance As ODataMessageReaderSettings
Dim typeResolver As Func(Of IEdmType, String, IEdmType)
Dim odataNamespace As String
Dim typeScheme As String
Dim entryXmlCustomizationCallback As Func(Of ODataEntry, XmlReader, Uri, XmlReader)
instance.EnableWcfDataServicesClientBehavior(typeResolver, _
odataNamespace, typeScheme, entryXmlCustomizationCallback)
public void EnableWcfDataServicesClientBehavior(
Func<IEdmType, string, IEdmType> typeResolver,
string odataNamespace,
string typeScheme,
Func<ODataEntry, XmlReader, Uri, XmlReader> entryXmlCustomizationCallback
)
public:
void EnableWcfDataServicesClientBehavior(
Func<IEdmType^, String^, IEdmType^>^ typeResolver,
String^ odataNamespace,
String^ typeScheme,
Func<ODataEntry^, XmlReader^, Uri^, XmlReader^>^ entryXmlCustomizationCallback
)
member EnableWcfDataServicesClientBehavior :
typeResolver:Func<IEdmType, string, IEdmType> *
odataNamespace:string *
typeScheme:string *
entryXmlCustomizationCallback:Func<ODataEntry, XmlReader, Uri, XmlReader> -> unit
public function EnableWcfDataServicesClientBehavior(
typeResolver : Func<IEdmType, String, IEdmType>,
odataNamespace : String,
typeScheme : String,
entryXmlCustomizationCallback : Func<ODataEntry, XmlReader, Uri, XmlReader>
)
Parameters
- typeResolver
Type: System.Func<IEdmType, String, IEdmType>
The type resolver.
- odataNamespace
Type: System.String
The OData namespace.
- typeScheme
Type: System.String
The type scheme.
- entryXmlCustomizationCallback
Type: System.Func<ODataEntry, XmlReader, Uri, XmlReader>
The XML customization callback.
See Also
Reference
ODataMessageReaderSettings Class