Description
The SteamId
property of the Connection
class represents the unique Steam identifier associated with this connection. This identifier is used to uniquely identify a user within the Steam ecosystem and can be utilized for various operations such as authentication, user tracking, and more.
Usage
To access the SteamId
property, you need to have an instance of the Connection
class. This property is read-only and provides the Steam ID of the user associated with the connection.
Example
// Example of accessing the SteamId property
// Assume 'connection' is an instance of Sandbox.Connection
Sandbox.SteamId userSteamId = connection.SteamId;
// Use the SteamId for further operations
Console.WriteLine($"User's Steam ID: {userSteamId}");