GuoidObjectTryParse 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 guoid to GuoidObject equivalent. A return value indicates whether the conversion succeeded.

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

public static bool TryParse(
	string value,
	out GuoidObject guoid
)

Parameters

value
Type: SystemString
A string that contains the guoid value to convert.
guoid
Type: ContentStudio.DocumentGuoidObject
When this method returns, contains the 32-bit signed integer value equivalent to the number contained in s, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the value parameter is Nothing or is not of the correct format. This parameter is passed uninitialized.

Return Value

Type: Boolean
true if value can be converted; otherwise, false
Remarks

The TryParse method is like the Parse method, except the TryParse method does not throw an exception if the conversion fails. It eliminates the need to use exception handling to test for a FormatException in the event that value is invalid and cannot be successfully parsed.
See Also

Reference