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 the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

Guid Structure
Guid Members
System Namespace