DataService<T>.CurrentDataSource Property

Gets the data source instance currently being used to process the request.

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

Syntax

'Declaration
Protected ReadOnly Property CurrentDataSource As T
    Get
'Usage
Dim value As T

value = Me.CurrentDataSource
protected T CurrentDataSource { get; }
protected:
property T CurrentDataSource {
    T get ();
}
member CurrentDataSource : 'T
function get CurrentDataSource () : T

Property Value

Type: T
The data source instance for the service.

Remarks

An instance of the template class used when the class was constructed.

See Also

Reference

DataService<T> Class

System.Data.Services Namespace