Compartilhar via


WebDomainClient<TContract> Constructor (Uri)

[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.]

Initializes a new instance of the WebDomainClient<TContract> class with the specified service URI.

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

Syntax

'Declaration
Public Sub New ( _
    serviceUri As Uri _
)
'Usage
Dim serviceUri As Uri

Dim instance As New WebDomainClient(serviceUri)
public WebDomainClient(
    Uri serviceUri
)
public:
WebDomainClient(
    Uri^ serviceUri
)
new : 
        serviceUri:Uri -> WebDomainClient
public function WebDomainClient(
    serviceUri : Uri
)

Parameters

  • serviceUri
    Type: System.Uri
    The domain service URI.

Exceptions

Exception Condition
ArgumentNullException

serviceUri is nulla null reference (Nothing in Visual Basic).

See Also

Reference

WebDomainClient<TContract> Class

WebDomainClient<TContract> Overload

System.ServiceModel.DomainServices.Client Namespace