MediaDataServiceContext Class

Wraps DataServiceContext.

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.MediaServices.Client.MediaDataServiceContext

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

'Declaration
Public Class MediaDataServiceContext _
    Implements IMediaDataServiceContext
'Usage
Dim instance As MediaDataServiceContext
public class MediaDataServiceContext : IMediaDataServiceContext
public ref class MediaDataServiceContext : IMediaDataServiceContext
type MediaDataServiceContext =  
    class 
        interface IMediaDataServiceContext 
    end
public class MediaDataServiceContext implements IMediaDataServiceContext

The MediaDataServiceContext type exposes the following members.

Constructors

  Name Description
Public method MediaDataServiceContext Initializes a new instance of the MediaDataServiceContext class.

Top

Properties

  Name Description
Public property IgnoreResourceNotFoundException Gets or sets whether an exception is raised when a 404 error (resource not found) is returned by the data service.

Top

Methods

  Name Description
Public method AddLink Adds the specified link to the set of objects the System.Data.Services.Client.DataServiceContext is tracking.
Public method AddObject Adds the specified object to the set of objects that the System.Data.Services.Client.DataServiceContext is tracking.
Public method AddRelatedObject Adds a related object to the context and creates the link that defines the relationship between the two objects in a single request.
Public method AttachTo(String, Object) Notifies the System.Data.Services.Client.DataServiceContext to start tracking the specified resource and supplies the location of the resource in the specified resource set.
Public method AttachTo(String, Object, String) Notifies the System.Data.Services.Client.DataServiceContext to start tracking the specified resource and supplies the location of the resource in the specified resource set.
Public method CreateQuery<T> Creates a data service query for data of a specified generic type.
Public method DeleteLink Changes the state of the link to deleted in the list of links being tracked by the System.Data.Services.Client.DataServiceContext.
Public method DeleteObject Changes the state of the specified object to be deleted in the System.Data.Services.Client.DataServiceContext.
Public method Equals (Inherited from Object.)
Public method Execute<TElement> Sends a request to the data service to execute a specific URI. Not supported by the WCF Data Services 5.0 client for Silverlight.
Public method ExecuteAsync(Uri, Object, String) Executes the operation asynchronously.
Public method ExecuteAsync<T>(DataServiceQueryContinuation<T>, Object) Executes the operation asynchronously.
Public method ExecuteAsync<T>(Uri, Object) Executes the operation asynchronously.
Public method ExecuteBatchAsync Executes the batch operation asynchronously.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetReadStreamAsync Gets the read stream asynchronously.
Public method GetType (Inherited from Object.)
Public method LoadProperty Loads deferred content for a specified property from the data service. Not supported by the WCF Data Services 5.0 client for Silverlight.
Public method LoadPropertyAsync(Object, String, Object) Loads the property asynchronously.
Public method LoadPropertyAsync(Object, String, DataServiceQueryContinuation, Object) Loads the property asynchronously.
Public method LoadPropertyAsync(Object, String, Uri, Object) Loads the property asynchronously.
Protected method MemberwiseClone (Inherited from Object.)
Public method SaveChanges Saves the changes that the System.Data.Services.Client.DataServiceContext is tracking to storage. Not supported by the WCF Data Services 5.0 client for Silverlight.
Public method SaveChangesAsync(Object) Saves the changes asynchronously.
Public method SaveChangesAsync(SaveChangesOptions, Object) Saves the changes asynchronously.
Public method SetLink Notifies the System.Data.Services.Client.DataServiceContext that a new link exists between the objects specified and that the link is represented by the property specified by the sourceProperty parameter.
Public method ToString (Inherited from Object.)
Public method UpdateObject Changes the state of the specified object to System.Data.Services.Client.EntityStates.Modified.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.WindowsAzure.MediaServices.Client Namespace