CSharpTest.Net
DbGuid Constructor(Int32,Int16,Int16,Byte,Byte,Byte,Byte,Byte,Byte,Byte,Byte)
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Data Namespace > DbGuid Structure > DbGuid Constructor : DbGuid Constructor(Int32,Int16,Int16,Byte,Byte,Byte,Byte,Byte,Byte,Byte,Byte)

a
b
c
d
e
f
g
h
i
j
k

Glossary Item Box

Constructs a DbGuid from the typical Guid values

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal a As Integer, _
   ByVal b As Short, _
   ByVal c As Short, _
   ByVal d As Byte, _
   ByVal e As Byte, _
   ByVal f As Byte, _
   ByVal g As Byte, _
   ByVal h As Byte, _
   ByVal i As Byte, _
   ByVal j As Byte, _
   ByVal k As Byte _
)
C# 
public DbGuid( 
   int a,
   short b,
   short c,
   byte d,
   byte e,
   byte f,
   byte g,
   byte h,
   byte i,
   byte j,
   byte k
)

Parameters

a
b
c
d
e
f
g
h
i
j
k

Example

Library/Library.Test/TestDbGuid.cs

C#Copy Code
DbGuid testA = new DbGuid(0x01020304, 0x0506, 0x0708, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80);
Guid testB = new Guid(0x01020304, 0x0506, 0x0708, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0x80);
Assert.AreEqual(testB, testA.ToGuid());
VB.NETCopy Code
Dim testA As New DbGuid(&H1020304, &H506, &H708, &H10, &H20, &H30, _
    &H40, &H50, &H60, &H70, &H80)
Dim testB As New Guid(&H1020304, &H506, &H708, &H10, &H20, &H30, _
    &H40, &H50, &H60, &H70, &H80)
Assert.AreEqual(testB, testA.ToGuid())

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys