WebDomainClient<TContract> Constructor (Uri, Boolean)

WCF RIA Services

[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 and the option to use HTTPS.

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

public WebDomainClient(
	Uri serviceUri,
	bool usesHttps
)

Parameters

serviceUri
Type: System.Uri
The domain service URI.
usesHttps
Type: System.Boolean
A value that indicates whether the client should contact the service using an HTTP or HTTPS scheme.

ExceptionCondition
ArgumentNullException

serviceUri is null.

ArgumentException

serviceUri is absolute and usesHttps is true.

Show: