DataServiceContext.GetReadStream 方法 (Object, String, DataServiceRequestArgs)
透過使用指定的 Content-Type 訊息標頭,取得屬於指定之實體的具名二進位資料流。
不受到適用於 Silverlight 的 WCF Data Services 5.0 用戶端支援。
命名空間: System.Data.Services.Client
組件: Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)
語法
'宣告
Public Function GetReadStream ( _
entity As Object, _
name As String, _
args As DataServiceRequestArgs _
) As DataServiceStreamResponse
'用途
Dim instance As DataServiceContext
Dim entity As Object
Dim name As String
Dim args As DataServiceRequestArgs
Dim returnValue As DataServiceStreamResponse
returnValue = instance.GetReadStream(entity, _
name, args)
public DataServiceStreamResponse GetReadStream(
Object entity,
string name,
DataServiceRequestArgs args
)
public:
DataServiceStreamResponse^ GetReadStream(
Object^ entity,
String^ name,
DataServiceRequestArgs^ args
)
member GetReadStream :
entity:Object *
name:string *
args:DataServiceRequestArgs -> DataServiceStreamResponse
public function GetReadStream(
entity : Object,
name : String,
args : DataServiceRequestArgs
) : DataServiceStreamResponse
參數
- entity
型別:System.Object
包含要擷取之二進位資料流的實體。
- name
型別:System.String
所要求之二進位資料流的名稱。
- args
型別:System.Data.Services.Client.DataServiceRequestArgs
DataServiceRequestArgs 類別的執行個體,其中包含 HTTP 要求訊息的設定。
傳回值
型別:System.Data.Services.Client.DataServiceStreamResponse
表示回應的 DataServiceStreamResponse 執行個體。
備註
GetReadStream(Object, String, DataServiceRequestArgs) 方法是用來傳回具名資料流。