Guid.NewGuid Method creates a new instance of the Guid class. : GUID « Development « VB.Net






Guid.NewGuid Method creates a new instance of the Guid class.

 

Imports System

Class Sample
    Public Shared Sub Main() 
        Dim g As Guid
        g = Guid.NewGuid()
        Console.WriteLine(g)
        Console.WriteLine(Guid.NewGuid())
    End Sub 'Main
End Class 'Sample

   
  








Related examples in the same category

1.GUIDs
2.Generic and nongeneric versions of the CompareTo method for Guid value
3.Converts the string representation of a GUID to the equivalent Guid structure.