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:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Function ResolveType ( _
	entitySetName As String, _
	operationContext As DataServiceOperationContext _
) As String
Dim instance As IDataServiceStreamProvider 
Dim entitySetName As String 
Dim operationContext As DataServiceOperationContext 
Dim returnValue As String 

returnValue = instance.ResolveType(entitySetName, _


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.

This method is invoked by the data services framework when a request is received to insert into an Entity Set with an associated Entity Type hierarchy that has > 1 Entity Type and >= 1 Entity Type which is tagged as an MLE (ie. includes a stream). An implementer of this method should inspect the request headers provided by the operationContext parameter and return the namespace qualified type name which represents the type the Astoria framework should instantiate to create the MLE associated with the BLOB/MR being inserted. The string representing the MLE type name returned from this method will subsequently be passed to IUpdatable.CreateResource to create the MLE (of the specified type). NOTE: Altering properties on the operationContext parameter may corrupt the response from the data service.

© 2015 Microsoft