WFHttpContextValueProvider

The WFHttpContextValueProvider class pulls from Request.Form[] values, and not from the Request query string.
Constructors
  • WFHttpContextValueProvider(HttpContext context)
Initializes a new instance of the WFHttpContextValueProvider class and uses the Request object of the "context" instance to pull form values from.
  • WFHttpContextValueProvider(HttpRequest request)
Initializes a new instance of the WFHttpContextValueProvider class and uses the "request" object to pull form values from.
Interface Implementations
  • IWFValueProvider.ContainsKey(string keyname)
Returns a boolean representing if the request's "Form" data has key "keyname".
  • IWFValueProvider.KeyValue(string keyName, object defaultValue)
Checks if the request "Form" data has key "keyName". If the key is found and the value is not null/empty, the value will be returned. Otherwise, "defaultValue" will be returned.
  • IWFValueProvider.KeyValue(string keyName)
Returns the value of the "Form" data's key "keyName". An exception will be thrown if the key is not present.
  • IWFValueProvider.GetPropertyEnumerator()
Returns the collection of the "Form" data's keys as an enumerable of String.

Last edited May 21, 2012 at 6:50 PM by aikeru, version 2

Comments

No comments yet.