Click or drag to resize
QueryHelperValidateHash Method
Validates given QueryString against hash.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static bool ValidateHash(
	string name,
	string excludedParameters = null,
	HashSettings settings = null,
	bool validateWithoutExcludedParameters = false
)

Parameters

name
Type: SystemString
Name of hash parameter in query string
excludedParameters (Optional)
Type: SystemString
Parameters to exclude from hash validation. Multiple names separated by ';'.
settings (Optional)
Type: CMS.HelpersHashSettings
Hash settings
validateWithoutExcludedParameters (Optional)
Type: SystemBoolean
Indicates if the query string is validated without the excluded parameters if validation with excluded parameters fails

Return Value

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