UnitIdTryParse 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 UnitId 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 UnitId result


Type: SystemString
A string containing a number to convert.
Type: ContentStudio.DocumentUnitId
When this method returns, contains the UnitId 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
true if s was converted successfully; otherwise, false.
See Also