DataService<T>.ODataWriterFactory Property

Public func to wrap the current DataServiceODataWriter with custom one to intercept WCF Data Services calls to ODataWriter. This enables seeing the ODataFeed/ODataEntry/ ODataNavigationLink instances that gets passed to underlying instance.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Property ODataWriterFactory As Func(Of ODataWriter, DataServiceODataWriter)
    Get 
    Set
'Usage
Dim instance As DataService 
Dim value As Func(Of ODataWriter, DataServiceODataWriter)

value = instance.ODataWriterFactory

instance.ODataWriterFactory = value
public Func<ODataWriter, DataServiceODataWriter> ODataWriterFactory { get; set; }
public:
property Func<ODataWriter^, DataServiceODataWriter^>^ ODataWriterFactory {
    Func<ODataWriter^, DataServiceODataWriter^>^ get ();
    void set (Func<ODataWriter^, DataServiceODataWriter^>^ value);
}
member ODataWriterFactory : Func<ODataWriter, DataServiceODataWriter> with get, set
function get ODataWriterFactory () : Func<ODataWriter, DataServiceODataWriter>
function set ODataWriterFactory (value : Func<ODataWriter, DataServiceODataWriter>)

Property Value

Type: System.Func<ODataWriter, DataServiceODataWriter>

See Also

Reference

DataService<T> Class

System.Data.Services Namespace