Share via


Guid.NewGuid Method

Initializes a new instance of the Guid class.

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

Syntax

public static Guid NewGuid ()

Return Value

A new Guid object.

Remarks

This is a convenient static method that you can call to get a new Guid.

There is a very low probability that the value of the new Guid is all zeroes or equal to any other Guid.

Version Information

Available in .NET Micro Framework version 3.0 and above.

See Also

Reference

Guid Structure
Guid Members
System Namespace