C# Guid Guid(UInt32, UInt16, UInt16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
Description
Guid Guid(UInt32, UInt16, UInt16, Byte, Byte, Byte, Byte, Byte,
Byte, Byte, Byte)
initializes a new instance of the Guid structure
by using the specified unsigned integers and bytes.
Syntax
Guid.Guid(UInt32, UInt16, UInt16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
has the following syntax.
[CLSCompliantAttribute(false)]// ww w .j av a 2 s . c o m
public Guid(
uint a,
ushort b,
ushort c,
byte d,
byte e,
byte f,
byte g,
byte h,
byte i,
byte j,
byte k
)
Parameters
Guid.Guid(UInt32, UInt16, UInt16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)
has the following parameters.
a
- The first 4 bytes of the GUID.b
- The next 2 bytes of the GUID.c
- The next 2 bytes of the GUID.d
- The next byte of the GUID.e
- The next byte of the GUID.f
- The next byte of the GUID.g
- The next byte of the GUID.h
- The next byte of the GUID.i
- The next byte of the GUID.j
- The next byte of the GUID.k
- The next byte of the GUID.
Example
/*from w w w.j a va2 s .c om*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(new Guid(0xa,0xb,0xc,0,1,2,3,4,5,6,7) );
}
}
The code above generates the following result.