返回用于请求指定命名流的 URI。
命名空间: System.Data.Services.Providers
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Function GetReadStreamUri ( _
entity As Object, _
streamProperty As ResourceProperty, _
operationContext As DataServiceOperationContext _
) As Uri
用法
Dim instance As IDataServiceStreamProvider2
Dim entity As Object
Dim streamProperty As ResourceProperty
Dim operationContext As DataServiceOperationContext
Dim returnValue As Uri
returnValue = instance.GetReadStreamUri(entity, _
streamProperty, operationContext)
Uri GetReadStreamUri(
Object entity,
ResourceProperty streamProperty,
DataServiceOperationContext operationContext
)
Uri^ GetReadStreamUri(
Object^ entity,
ResourceProperty^ streamProperty,
DataServiceOperationContext^ operationContext
)
abstract GetReadStreamUri :
entity:Object *
streamProperty:ResourceProperty *
operationContext:DataServiceOperationContext -> Uri
function GetReadStreamUri(
entity : Object,
streamProperty : ResourceProperty,
operationContext : DataServiceOperationContext
) : Uri
参数
- entity
类型:System.Object
所请求的命名流的实体。
- streamProperty
类型:System.Data.Services.Providers.ResourceProperty
表示命名流的 ResourceProperty 对象。
- operationContext
类型:System.Data.Services.DataServiceOperationContext
数据服务用于处理请求的 DataServiceOperationContext 实例。
返回值
类型:System.Uri
用于请求命名二进制数据流的 Uri 值。
注释
当使用客户端检索(即,GET)命名流的请求时,通过数据服务运行时以获得应使用客户端的 URI 调用 GetReadStreamUri 方法。
当此方法实现返回 nullnull 引用(在 Visual Basic 中为 Nothing) 时,数据服务将为命名流构造 Uri。