| Visual Basic (Declaration) | |
|---|---|
Public Enum ServiceType Inherits System.Enum | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ServiceType | |
| C# | |
|---|---|
public enum ServiceType : System.Enum | |
| Member | Description |
|---|---|
| WebForm | WebNotification will use WebForm Service Type. |
| WebService | WebNotification will use WebService Service Type. |
WebNotification provides two types ServiceType. They are WebForm ServiceType and WebService ServiceType.
- WebForm ServiceType.
This is the default value for ServiceType property. WebForm mode is recommended when the data provider is private and does not need to be exposed. With this mode, you need to set the WebForm (aspx) page which the control will invoke. You can set the ServiceUrl to either the current caller page or another WebForm page in the application. - WebService ServiceType.
This type allows you to retrieve Notifications data from a web service (asmx) page. When set to this mode, you set the ServiceUrl to the web service page containing the method required by WebNotification control. The WebService mode is the recommended data provider setting when the methods need to be exposed for other usage. Note that both WebForm and WebService have similar method signature and returned object type. This allows you to easily switch between WebForm and WebService as necessary in certain phase of development.
System.Object
System.ValueType
System.Enum
ISNet.WebUI.WebDesktop.ServiceType
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2