[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eConnection\u003c/code\u003e class within the Security Command Center v2 API for .NET, used for representing IP connection information associated with security findings.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e, providing methods and properties for managing connection data.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eConnection\u003c/code\u003e class include \u003ccode\u003eDestinationIp\u003c/code\u003e, \u003ccode\u003eDestinationPort\u003c/code\u003e, \u003ccode\u003eProtocol\u003c/code\u003e, \u003ccode\u003eSourceIp\u003c/code\u003e, and \u003ccode\u003eSourcePort\u003c/code\u003e, which are used to store the details of an IP connection.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two constructors: a default constructor \u003ccode\u003eConnection()\u003c/code\u003e and a copy constructor \u003ccode\u003eConnection(Connection other)\u003c/code\u003e, which allows the creation of new \u003ccode\u003eConnection\u003c/code\u003e objects based on existing ones.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eProtocol\u003c/code\u003e property utilizes the \u003ccode\u003eConnection.Types.Protocol\u003c/code\u003e enum, enabling the representation of various internet protocols such as TCP or UDP.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class Connection (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Connection)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.Connection)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.Connection) \n\n public sealed class Connection : IMessage\u003cConnection\u003e, IEquatable\u003cConnection\u003e, IDeepCloneable\u003cConnection\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class Connection.\n\nContains information about the IP connection associated with the finding. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Connection \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Connection](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Connection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Connection](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Connection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Connection](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Connection), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### Connection()\n\n public Connection()\n\n### Connection(Connection)\n\n public Connection(Connection other)\n\nProperties\n----------\n\n### DestinationIp\n\n public string DestinationIp { get; set; }\n\nDestination IP address. Not present for sockets that are listening and not\nconnected.\n\n### DestinationPort\n\n public int DestinationPort { get; set; }\n\nDestination port. Not present for sockets that are listening and not\nconnected.\n\n### Protocol\n\n public Connection.Types.Protocol Protocol { get; set; }\n\nIANA Internet Protocol Number such as TCP(6) and UDP(17).\n\n### SourceIp\n\n public string SourceIp { get; set; }\n\nSource IP address.\n\n### SourcePort\n\n public int SourcePort { get; set; }\n\nSource port."]]