IDataServiceConfiguration Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 class IDataServiceConfiguration

NameDescription
System_CAPS_pubpropertyMaxBatchCount

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

System_CAPS_pubpropertyMaxChangesetCount

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

System_CAPS_pubpropertyMaxExpandCount

Gets or sets the maximum number of segments that can be expanded by the $expand query option for all requests to the data service.

System_CAPS_pubpropertyMaxExpandDepth

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

System_CAPS_pubpropertyMaxObjectCountOnInsert

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

System_CAPS_pubpropertyMaxResultsPerCollection

Gets the maximum number of results per collection.

System_CAPS_pubpropertyUseVerboseErrors

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

NameDescription
System_CAPS_pubmethodRegisterKnownType(Type^)

Registers a resource type for use by the data service.

System_CAPS_pubmethodSetEntitySetAccessRule(String^, EntitySetRights)

Sets the access rules for the specified entity set.

System_CAPS_pubmethodSetServiceOperationAccessRule(String^, ServiceOperationRights)

Sets the access rules for the specified service operation.

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
Available since 3.5
Return to top
Show: