Groups | Blog | Home
all groups > dotnet general > august 2004 >

dotnet general : Generate GUID


Jeff Lynch
8/28/2004 7:53:44 PM
How do I create a new GUID programatically like the "Create Guid" tool does
in VS.NET?


--
Jeff Lynch
"A BizTalk Enthusiast"
http://dotnetjunkies.com/WebLog/jlynch/

Arne Janning
8/29/2004 3:22:00 AM
"Jeff Lynch" <jeff.lynch@houston-lynch.com> schrieb
[quoted text, click to view]

Hi Jeff,

use NewGuid() of the System.Guid-Structure.

[C#]
Guid g = Guid.NewGuid();

[VB.NET]
Dim g as Guid = Guid.NewGuid()

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemguidclasstopic.asp

Cheers

Arne Janning

Jeff Lynch
8/29/2004 7:38:44 PM
Thanks!

--
Jeff Lynch
"A BizTalk Enthusiast"
http://dotnetjunkies.com/WebLog/jlynch/



[quoted text, click to view]

AddThis Social Bookmark Button