This topic has not yet been rated - Rate this topic

IDataServiceConfiguration Interface

The IDataServiceConfiguration is used by WCF Data Services to set up the behavior of the service, including rights on entity sets and service operations, limits on the allowed requests, registering types not discoverable by default, and the default verbosity on error handling.

Namespace:  System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)
public interface IDataServiceConfiguration

The IDataServiceConfiguration type exposes the following members.

  Name Description
Public property MaxBatchCount Gets the maximum number of requests that can be handled in a batch.
Public property MaxChangesetCount Gets the maximum number of change sets that can be handled in a batch.
Public property MaxExpandCount Gets or sets the maximum number of segments that can be expanded by the $expand query option for all requests to the data service.
Public property MaxExpandDepth Gets or sets a maximum number of segments supported in a single $expand path for all requests to the data service.
Public property MaxObjectCountOnInsert Gets or sets the maximum number of objects that can be inserted in a single request.
Public property MaxResultsPerCollection Gets the maximum number of results per collection.
Public property UseVerboseErrors Gets or sets whether verbose errors are used by default for all responses from the data service.
Top
  Name Description
Public method RegisterKnownType Registers a resource type for use by the data service.
Public method SetEntitySetAccessRule Sets the access rules for the specified entity set.
Public method SetServiceOperationAccessRule Sets the access rules for the specified service operation.
Top

This type is used by DataService<T> classes to configure the service by implementing a static method named InitializeService, returning void, and taking a single argument of type IDataServiceConfiguration. The configuration object may only be used during the call to service initialization.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ