CategoryIdTryParse Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Converts the string representation of a number to its CategoryId equivalent. A return value indicates whether the operation succeeded.

Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public static bool TryParse(
	string s,
	out CategoryId result


Type: SystemString
A string containing a number to convert.
Type: ContentStudio.DocumentCategoryId
When this method returns, contains the CategoryId value equivalent to the number contained in s, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null, is not of the correct format, or represents a number less than MinValue or greater than MaxValue. This parameter is passed uninitialized.

Return Value

Type: Boolean
if the string was converted successfully; otherwise, false.
See Also