Wisej.Core.WebMethodAttribute
Namespace: Wisej.Core
Assembly: Wisej.Framework (4.0.0.0)
Indicates that the method can be called from the browser using JavaScript.
You can add this attribute to static methods in your Wisej application Program class and to instance methods in top level containers: Page, Form, and Desktop. If you want to register web methods on child controls, you can, but Wisej only searches top level containers automatically. To register web methods on a child control, extend the control class, override OnWebRender and call RegisterWebMethods.
Default parameters are not supported in Web Methods. This is supported:
But this is not supported:
Initializes the WebMethodAttribute attribute.
Initializes the WebMethodAttribute attribute.
inheritable
Indicates whether the web method is inherited by derived classes.
Boolean: Returns a value indicating whether the web method is inherited by derived classes.
Returns the request web method.
type
The type to search to the web method name .
name
Name of the web method to find.
parametersCount
Number of parameters of the web method to find.
Returns: MethodInfo. The MethodInfo for the specified method or null.
Returns the request web method.
component
name
Name of the web method to find.
parametersCount
Number of parameters of the web method to find.
Returns: MethodInfo. The MethodInfo for the specified method.
Returns the request web method.
type
The type to search to the web method name .
shared
True to check only the static/shared web methods declared in type .
name
Name of the web method to find.
parametersCount
Number of parameters of the web method to find.
Returns: MethodInfo. The MethodInfo for the specified method or null.
Returns the static web methods.
type
The type defining the web methods.
Returns: List<String>. List of web methods.
Returns the instance web methods on the object. '
component
Returns: List<String>. List of web methods.
Returns the registered web methods on the object.
type
The type defining the web methods.
declaredOnly
True to enumerate the web methods declared in type ignoring inherited methods.
shared
True to enumerate the static/shared web methods declared in type .
Returns: List<String>. List of web methods.
Checks if the specified method can be called as a web method.
method
targetType
Target type for the method call.
Returns: Boolean.
The defining the web methods.
The defining the web methods.
The descriptor.