GuidStatic: TryParseExact

TryParseExact

Converts the string representation of a GUID to the equivalent Guid object, provided that the string is in the specified format.



 Public Function TryParseExact(
	  ByRef InputString As String,
	  ByRef Format As String,
	  ByRef Result As Guid ) As Boolean

Parameters

InputString
[ByRef] String. The GUID to convert.
Format
[ByRef] String. One of the following specifiers that indicates the exact format to use when interpreting StringInput: "N", "D", "B", "P", or "X".
Result
[ByRef] Guid. The structure that will contain the parsed value. If the method returns True, Result contains a valid Guid. If the method returns False, result equals Guid.Empty.

Return Values

Boolean -  True if the parse operation was successful; otherwise, False.

See Also

Project CorLib Overview

Class GuidStatic Overview