Click or drag to resize
QueryHelperValidateHash Method (String, String, Boolean, Boolean, Boolean, String)

Note: This API is now obsolete.

Validates given QueryString against hash.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("Use method ValidateHash(name, excludedParameters, validateWithoutExcludedParameters, settings)")]
public static bool ValidateHash(
	string name,
	string excludedParameters,
	bool userSpecific,
	bool redirect = true,
	bool validateWithoutExcludedParameters = false,
	string hashSalt = null
)

Parameters

name
Type: SystemString
Name of hash parameter in query string
excludedParameters
Type: SystemString
Parameters to exclude from hash validation. Multiple names separated by ';'.
userSpecific
Type: SystemBoolean
Indicates if the hash string is bound to current user
redirect (Optional)
Type: SystemBoolean
Indicates whether or not should the method redirect
validateWithoutExcludedParameters (Optional)
Type: SystemBoolean
Indicates if the query string is validated without the excluded parameters if validation with excluded parameters fails
hashSalt (Optional)
Type: SystemString
Salt added to hash count (this hash is not replacing custom salt).

Return Value

Type: Boolean
True if query string is valid.
See Also