Click or drag to resize
IFormCollectionTryGetValue Method
Retrieves value of form item specified by given name.

Namespace: CMS.Base.Internal
Assembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax
C#
bool TryGetValue(
	string key,
	out StringValues value
)

Parameters

key
Type: SystemString
Name of the form item for which value is retrieved.
value
Type: StringValues
If the key is found the value associated with the specified key, otherwise the default value for the type of the value parameter.

Return Value

Type: Boolean
True if query string item was present, otherwise false.
See Also