Click or drag to resize

IAppContextUrlSave Method

Stores a URL in the database xot_url table. URL's are generally stored in this manner for one of two purposes: 1) For permanent use as a saved reference of some type, and 2) As a temporary URL whose reference is passed as a query parameter (for security and to reduce query parameter size). Use UrlRead(String) to retrieve saved URL's.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
string UrlSave(
	string queryString,
	UrlLinkType linkType,
	Nullable<DateTime> expiration
)

Parameters

queryString
Type: SystemString
The query string to save.
linkType
Type: NetQuarryUrlLinkType
The link type.
expiration
Type: SystemNullableDateTime
The expiration date for temporary links. Specify null for permananent links.

Return Value

Type: String
The url ID using the GUID "B" format ("{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}").
Remarks
If no expiration is specified and a matching queryString already exists in the xot_url table (also with no expiration) then no new record will be created and the GUID for the existing record will be returned.
See Also