GuidStatic

GuidStatic


Provides static methods used to create and manipulate Guid objects.

Remarks

The name Guid conflicts with a hidden type in VB. In order to specific the VBCorLib version of Guid, a variable must be defined as VBCorLib.Guid instead of just Guid.

This class cannot be directly created. To access the methods, use the variable name directly.
 Dim g As VBCorLib.Guid
 Set g = Guid.Parse("{533217B3-CDEC-40A2-B01C-1EA8593B850F}")
 

See Also

Project VBCorLib Overview | Guid

Public:

Properties:

NameDescription
 IDispatchGuid (get) Returns a Guid already set to the IDispatch (Object) interface.  
 IUnknownGuid (get) Returns a Guid already set to the IUnknown interface.  

Methods:

NameDescription
 FromByteArray Converts an array of 16 bytes into a Guid.  
 FromMemory Creates a Guid based on a 16-byte block of memory.  
 FromParts Creates a guid using specified values and byte array.  
 FromProgramID Returns a Guid representation of the Program ID in the form of .  
 FromValues Creates a new guid from the individual values and bytes.  
 NewGuid Returns a new Guid object with a random guid generated.  
 Parse Parses a string representation of a guid, returning a Guid containing the parsed value.  
 ReadOnly Returns a Read-Only wrapper for the supplied Guid object.