แก้ไข

แชร์ผ่าน


IDataServiceConfiguration Interface

Definition

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.

public interface class IDataServiceConfiguration
public interface IDataServiceConfiguration
type IDataServiceConfiguration = interface
Public Interface IDataServiceConfiguration
Derived

Remarks

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.

Properties

MaxBatchCount

Gets the maximum number of requests that can be handled in a batch.

MaxChangesetCount

Gets the maximum number of change sets that can be handled in a batch.

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.

MaxExpandDepth

Gets or sets a maximum number of segments supported in a single $expand path for all requests to the data service.

MaxObjectCountOnInsert

Gets or sets the maximum number of objects that can be inserted in a single request.

MaxResultsPerCollection

Gets the maximum number of results per collection.

UseVerboseErrors

Gets or sets whether verbose errors are used by default for all responses from the data service.

Methods

RegisterKnownType(Type)

Registers a resource type for use by the data service.

SetEntitySetAccessRule(String, EntitySetRights)

Sets the access rules for the specified entity set.

SetServiceOperationAccessRule(String, ServiceOperationRights)

Sets the access rules for the specified service operation.

Applies to