共用方式為


DataServiceContext.GetReadStreamUri 方法 (Object)

取得用於傳回二進位資料流的 URI。

命名空間:  System.Data.Services.Client
組件:  Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)

語法

'宣告
Public Function GetReadStreamUri ( _
    entity As Object _
) As Uri
'用途
Dim instance As DataServiceContext
Dim entity As Object
Dim returnValue As Uri

returnValue = instance.GetReadStreamUri(entity)
public Uri GetReadStreamUri(
    Object entity
)
public:
Uri^ GetReadStreamUri(
    Object^ entity
)
member GetReadStreamUri : 
        entity:Object -> Uri 
public function GetReadStreamUri(
    entity : Object
) : Uri

參數

  • entity
    型別:System.Object
    包含要擷取之相關二進位資料流的實體。

傳回值

型別:System.Uri
二進位資料流的讀取 URI。

例外狀況

例外狀況 條件
ArgumentNullException

如果指定的實體是 nullnull 參考 (在 Visual Basic 中為 Nothing)。

ArgumentException

entity 未受到此 DataServiceContext 追蹤。

備註

當指定的 entity 是媒體連結項目時,GetReadStreamUri 方法會傳回用於存取媒體資源內容的 URI。

此 URI 只會在 GET 要求中用來讀取媒體資源內容。 它可能不會回應 POST、PUT 或 DELETE 要求。

請參閱

參考

DataServiceContext 類別

GetReadStreamUri 多載

System.Data.Services.Client 命名空間