WebDomainClient<TContract> Class

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Provides the default domain client implementation using Windows Communication Foundation (WCF).

Inheritance Hierarchy

System.Object
  System.ServiceModel.DomainServices.Client.DomainClient
    System.ServiceModel.DomainServices.Client.WebDomainClient<TContract>

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client.Web (in System.ServiceModel.DomainServices.Client.Web.dll)

Syntax

'Declaration
Public NotInheritable Class WebDomainClient(Of TContract As Class) _
    Inherits DomainClient
'Usage
Dim instance As WebDomainClient(Of TContract)
public sealed class WebDomainClient<TContract> : DomainClient
where TContract : class
generic<typename TContract>
where TContract : ref class
public ref class WebDomainClient sealed : public DomainClient
[<SealedAttribute>]
type WebDomainClient<'TContract when 'TContract : not struct> =  
    class
        inherit DomainClient
    end
JScript does not support generic types and methods.

Type Parameters

  • TContract
    The contract type.

The WebDomainClient<TContract> type exposes the following members.

Constructors

  Name Description
Public method WebDomainClient<TContract>(Uri) Initializes a new instance of the WebDomainClient<TContract> class with the specified service URI.
Public method WebDomainClient<TContract>(Uri, Boolean) Initializes a new instance of the WebDomainClient<TContract> class with the specified service URI and the option to use HTTPS.
Public method WebDomainClient<TContract>(Uri, Boolean, ChannelFactory<TContract>) Initializes a new instance of the WebDomainClient<TContract> class with the specified service URI, the option to use HTTPS, and the channel factory.

Top

Properties

  Name Description
Public property ChannelFactory Gets the channel factory that is used to create channels for communication with the server.
Public property EntityTypes Gets or sets the collection of entity types this DomainClient will operate on. (Inherited from DomainClient.)
Public property ServiceUri Gets the absolute path to the domain service.
Public property SupportsCancellation Gets a value that indicates whether the DomainClient supports cancellation. (Overrides DomainClient.SupportsCancellation.)
Public property UsesHttps Gets a value that indicates whether a secure connection should be used.

Top

Methods

  Name Description
Public method BeginInvoke Invokes an operation asynchronously. (Inherited from DomainClient.)
Protected method BeginInvokeCore Called by the framework to begin an Invoke operation asynchronously. (Inherited from DomainClient.)
Public method BeginQuery Executes an asynchronous query operation. (Inherited from DomainClient.)
Protected method BeginQueryCore Called by the framework to begin the asynchronous query operation. (Inherited from DomainClient.)
Public method BeginSubmit Submits the specified EntityChangeSet to the DomainService asynchronously. (Inherited from DomainClient.)
Protected method BeginSubmitCore Called by the framework to asynchronously process the specified EntityChangeSet. (Inherited from DomainClient.)
Public method CancelInvoke Attempts to cancel the invocation request specified by the asyncResult. (Inherited from DomainClient.)
Protected method CancelInvokeCore Attempts to cancel the invocation request specified by the asyncResult. (Inherited from DomainClient.)
Public method CancelQuery Attempts to cancel the query request specified by the asyncResult. (Inherited from DomainClient.)
Protected method CancelQueryCore Attempts to cancel the query request specified by the asyncResult. (Inherited from DomainClient.)
Public method CancelSubmit Attempts to cancel the submit request specified by the asyncResult. (Inherited from DomainClient.)
Protected method CancelSubmitCore Attempts to cancel the submit request specified by the asyncResult. (Inherited from DomainClient.)
Public method EndInvoke Completes an operation invocation. (Inherited from DomainClient.)
Protected method EndInvokeCore Called by the framework to complete an asynchronous invocation. (Inherited from DomainClient.)
Public method EndQuery Gets the results of an asynchronous query operation. (Inherited from DomainClient.)
Protected method EndQueryCore Called by the framework to complete the asynchronous query operation. (Inherited from DomainClient.)
Public method EndSubmit Gets the results of a submit request. (Inherited from DomainClient.)
Protected method EndSubmitCore Called by the framework to complete an asynchronous submit operation. (Inherited from DomainClient.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

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

System.ServiceModel.DomainServices.Client Namespace