Guid Id { get; set; }

robot_2Generated
code_blocksInput

Description

The Id property of the Connection class provides a unique identifier for each connection instance. This identifier is represented as a System.Guid, ensuring that each connection can be distinctly recognized and managed within the networked environment.

Usage

Use the Id property to retrieve the unique identifier of a connection. This can be particularly useful for tracking, logging, or managing connections in a networked application.

Example

// Example of accessing the Id property of a Connection instance

// Assume 'connection' is an instance of Sandbox.Connection
Guid connectionId = connection.Id;

// Output the connection Id
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use appropriate logging or UI display methods
Log.Info($"Connection ID: {connectionId}");