SavedFilterRegisterReqFilter Method (IAppContext, String, NullableDateTime) |
Register a filter clause for use in a URL's flt parameter. Registration will cause a
SavedFilter to be created and written to the database. The method
returns a filter spec that can be included in a URL without risk of a SQL injection attack.
Filters created using this overload will always be marked as Temp with a default expiration
and will be restricted to the current user.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic static string RegisterReqFilter(
IAppContext cxt,
string filter,
Nullable<DateTime> expiration
)
Public Shared Function RegisterReqFilter (
cxt As IAppContext,
filter As String,
expiration As Nullable(Of DateTime)
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - filter
- Type: SystemString
The filter clause. - expiration
- Type: SystemNullableDateTime
The filter expiration date/time. If specified, the filter will be marked as Temp. If not specified, but the
Temp attribute is specified, the expiration will be set to set to one day from time of creation.
Return Value
Type:
StringThe filter spec suitable for use in a URL flt parameter once escaped.
See Also