Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IDataServiceStreamProvider.ResolveType Method

Returns a namespace-qualified type name that represents the type that the data service runtime must create for the media link entry that is associated with the data stream for the media resource that is being inserted.

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

abstract ResolveType : 
        entitySetName:string * 
        operationContext:DataServiceOperationContext -> string 


Type: System.String
Fully-qualified entity set name.
Type: System.Data.Services.DataServiceOperationContext
The DataServiceOperationContext instance that is used by the data service to process the request.

Return Value

Type: System.String
A namespace-qualified type name.

The ResolveType method is called by the data service when a new entity that is a media link entry is being created together with its media resource. An implementer of this method must inspect the request headers in operationContext and return the namespace qualified type name that represents the type that the data service runtime must instantiate to create the media link entry that is associated with the new media resource. The string that represents this type name is passed to the CreateResource method to create the media link entry.

When you implement the GetWriteStream method, you should raise the following exceptions as indicated:

Exception type



When operationContext is a null reference (Nothing in Visual Basic).


When an entity type name cannot be resolved based on the operationContext.

.NET Framework

Supported in: 4

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.

Community Additions

© 2015 Microsoft