DataServiceContext.GetReadStreamUri Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetReadStreamUri(Object) |
Gets the URI that is used to return a binary data stream. |
GetReadStreamUri(Object, String) |
Gets the URI that is used to return a named binary data stream. |
GetReadStreamUri(Object)
Gets the URI that is used to return a binary data stream.
public virtual Uri GetReadStreamUri (object entity);
abstract member GetReadStreamUri : obj -> Uri
override this.GetReadStreamUri : obj -> Uri
Public Overridable Function GetReadStreamUri (entity As Object) As Uri
Parameters
- entity
- Object
The entity that has a related binary stream to retrieve.
Returns
The read URI of the binary data stream.
Exceptions
If the entity specified is null.
The entity
is not tracked by this DataServiceContext.
Remarks
If the specified entity is a Media Link Entry, this method will return an URI which can be used to access the content of the Media Resource. This URI should only be used to GET/Read the content of the MR. It may not respond to POST/PUT/DELETE requests.
Applies to
GetReadStreamUri(Object, String)
Gets the URI that is used to return a named binary data stream.
public virtual Uri GetReadStreamUri (object entity, string name);
abstract member GetReadStreamUri : obj * string -> Uri
override this.GetReadStreamUri : obj * string -> Uri
Public Overridable Function GetReadStreamUri (entity As Object, name As String) As Uri
Parameters
- entity
- Object
The entity that has the named binary data stream to retrieve.
- name
- String
The name of the stream to request.
Returns
The read URI of the binary data stream.
Exceptions
If the entity specified is null.
If the name parameter is empty or the entity specified is not being tracked.
Remarks
If the specified entity has a stream with the given name, this method will return an URI which can be used to access the content of the stream. This URI should only be used to GET/Read the content of the stream. It may not respond to POST/PUT/DELETE requests.