The DirectPlaySessionData.GetSessionName method retrieves the name of the session.
object.GetSessionName() As String
The method returns the name of the session.
If the method fails, an error is raised and Err.Number will be set.