WebContextBase Constructor
[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 WebContextBase class.
Namespace: System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Client.Web (in System.ServiceModel.DomainServices.Client.Web.dll)
Syntax
'Declaration
Protected Sub New
'Usage
Dim instance As New WebContextBase()
protected WebContextBase()
protected:
WebContextBase()
new : unit -> WebContextBase
protected function WebContextBase()
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The constructor is invoked when Current already contains an instance. |
Remarks
The first context that is created will become the current instance. The constructor cannot be called if a current instance already exists.
See Also
Reference
System.ServiceModel.DomainServices.Client.ApplicationServices Namespace