asGuidString

asGuidString(): String;

The asGuidString method of the Binary primitive type returns a visual representation of the Globally Unique Identifier (GUID) binary receiver as a string of printable characters, in the following format.

"{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"

Binary class identifiers are used in ActiveX control and automation libraries, for example, and they take less space than a visual string representation. This method raises an exception if the receiver is not a valid GUID; that is, it is not a binary of length 16.

See also the String primitive type asGuid method.