Microsoft SDK for Java

toByteArray()

This method of the _Guid Class converts a GUID to a 16-element byte array.

Syntax

public byte [] toByteArray();

Return Value

Returns a 16-element byte array that represents the GUID.

CAUTION   The byte array representation is not endian-portable; it cannot be used to transmit GUIDs between processors.

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