Platform SDK: DirectX

DirectPlayEnumConnections.GetName

The DirectPlayEnumConnections.GetName method retrieves a name object from the enumeration.

object.GetName(index As Long) As String

Parameters

object
Object expression that resolves to a DirectPlayEnumConnections object.
index
Element of the enumeration for which to retrieve data.

Return Values

The method returns the name of the connection—for example, "IPX Connection for DirectPlay".

Error Codes

If the method fails, an error is raised and Err.Number will be set.