IWebSiteExtenderPageHandlers Property |
Gets a map of page handler methods keyed by the address that they will handle.
Namespace: VirtualRadar.Interface.WebSiteAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax IDictionary<string, Action<RequestReceivedEventArgs>> PageHandlers { get; }
ReadOnly Property PageHandlers As IDictionary(Of String, Action(Of RequestReceivedEventArgs))
Get
property IDictionary<String^, Action<RequestReceivedEventArgs^>^>^ PageHandlers {
IDictionary<String^, Action<RequestReceivedEventArgs^>^>^ get ();
}
abstract PageHandlers : IDictionary<string, Action<RequestReceivedEventArgs>> with get
Property Value
Type:
IDictionaryString,
ActionRequestReceivedEventArgsRemarks
If your plugin needs to handle requests in code - for example it needs to create JSON responses on the fly - then you
can register your handlers for those requests here. The key to the dictionary is the address from the VRS root of the
address that you want your code called for (e.g. '/MyPlugin/GiveMeData.json') and the value is a delegate, anonymous
delegate or function that takes a single parameter, a RequestReceivedEventArgs, that passes information
about the request and can be used to send a response to the browser.
Addresses are not case sensitive.
See Also