Microsoft SDK for Java

_Guid Class Constructors

The _Guid Class contains the following constructors:

_Guid(byte [] ba)
_Guid(int d1, short d2, short d3, byte b8, byte b9, byte b10, byte b11, byte b12, byte b13, byte b14, byte b15)
_Guid(String str)
_Guid()

_Guid(byte [] ba)

Constructs a new _Guid object, whose value matches the internal representation of the specified 16-element byte array.

Syntax

public _Guid(byte [] ba);

Parameters

ba The 16-element byte array.

CAUTION   This constructor form is efficient but not endian-portable. Its use, therefore, is not recommended for cross-platform applications.

_Guid(int d1, short d2, short d3, byte b8, byte b9, byte b10, byte b11, byte b12, byte b13, byte b14, byte b15)

Constructs a new _Guid object whose value is specified by the internal representations of the parameters d1 through b15 in order.

Syntax

public _Guid(int d1, short d2, short d3, byte b8, byte b9, byte b10, byte b11, byte b12, byte b13, byte b14, byte b15);

Parameters

d1 A 32-bit integer.
d2 A 16-bit integer.
d3 A 16-bit integer.
b8 An 8-bit integer.
b9 An 8-bit integer.
b10 An 8-bit integer.
b11 An 8-bit integer.
b12 An 8-bit integer.
b13 An 8-bit integer.
b14 An 8-bit integer
b15 An 8-bit integer.

_Guid(String str)

Constructs a new _Guid object from its string representation. The string representation is in the following form, in which each x denotes a hexadecimal digit:

{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

Syntax

public _Guid(String str);

Parameters

str The GUID string representation.

_Guid()

Constructs a new _Guid object, whose value is as follows:

{00000000-0000-0000-0000-000000000000}.

Syntax

public _Guid();

© 1999 Microsoft Corporation. All rights reserved. Terms of use.