GuidUtility.TryParse method

Tries to parse the specified string as a Guid. A return value indicates whether the operation succeeded.

public static bool TryParse(string? value, out Guid guid)
parameter description
value The GUID string to attempt to parse.
guid When this method returns, contains the Guid equivalent to the GUID contained in value, if the conversion succeeded, or Guid.Empty if the conversion failed.

Return Value

true if a GUID was successfully parsed; false otherwise.

See Also