Export (0) Print
Expand All

WebContextBase.Current Property

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

Gets the context that is registered as a lifetime object with the current application.

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

public static WebContextBase Current { get; }

Property Value

Type: System.ServiceModel.DomainServices.Client.ApplicationServices.WebContextBase
The context that is registered as a lifetime object with the current application.

ExceptionCondition
InvalidOperationException

No context has been added to this property.

Show:
© 2014 Microsoft