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.
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
'Declaration Function ResolveType ( _ entitySetName As String, _ operationContext As DataServiceOperationContext _ ) As String 'Usage Dim instance As IDataServiceStreamProvider Dim entitySetName As String Dim operationContext As DataServiceOperationContext Dim returnValue As String returnValue = instance.ResolveType(entitySetName, _ operationContext)
- Type: System.String
Fully-qualified entity set name.
Return ValueType: 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 &gt; 1 Entity Type and &gt;= 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.