Mono Class Library: System.Guid Overview | Members

System.Guid Constructor

Creates a new Guid from a string representation.

public Guid (string g)

Parameters

g
The Guid string.

Remarks

Two Guid formats are acceptable. The first format is: "{FFFFFFFF-FFFF-FFFF-FF-FFFFFFFFFFFFFF}". An F is a hexidecimal digit. The braces may be parenthesis or omitted, and the dashes may be omitted (all or none).

The second format is: "{0xFFFFFFFF,0xFFFF,0xFFFF,{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}}".

A FormatException is throw if the format of the string does not match one of the above formats.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0