Bridge

Guid..::..ParseExact Method

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

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[NameAttribute]
public static Guid ParseExact(
	string input,
	string format
)
<NameAttribute> _
Public Shared Function ParseExact ( _
	input As String, _
	format As String _
) As Guid
[NameAttribute]
public:
static Guid^ ParseExact(
	String^ input, 
	String^ format
)

Parameters

input
Type: System..::..String
The GUID to convert.
format
Type: System..::..String
One of the following specifiers that indicates the exact format to use when interpreting input: "N", "D", "B", "P", or "X".

Return Value

A structure that contains the value that was parsed.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptioninput or format is null.
System..::..FormatExceptioninput is not in the format specified by format.