ArmPeeringModelFactory.PeeringExchangeConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of PeeringExchangeConnection.
public static Azure.ResourceManager.Peering.Models.PeeringExchangeConnection PeeringExchangeConnection (int? peeringDBFacilityId = default, Azure.ResourceManager.Peering.Models.PeeringConnectionState? connectionState = default, Azure.ResourceManager.Peering.Models.PeeringBgpSession bgpSession = default, Guid? connectionIdentifier = default, string errorMessage = default);
static member PeeringExchangeConnection : Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.PeeringConnectionState> * Azure.ResourceManager.Peering.Models.PeeringBgpSession * Nullable<Guid> * string -> Azure.ResourceManager.Peering.Models.PeeringExchangeConnection
Public Shared Function PeeringExchangeConnection (Optional peeringDBFacilityId As Nullable(Of Integer) = Nothing, Optional connectionState As Nullable(Of PeeringConnectionState) = Nothing, Optional bgpSession As PeeringBgpSession = Nothing, Optional connectionIdentifier As Nullable(Of Guid) = Nothing, Optional errorMessage As String = Nothing) As PeeringExchangeConnection
Parameters
The PeeringDB.com ID of the facility at which the connection has to be set up.
- connectionState
- Nullable<PeeringConnectionState>
The state of the connection.
- bgpSession
- PeeringBgpSession
The BGP session associated with the connection.
- errorMessage
- String
The error message related to the connection state, if any.
Returns
A new PeeringExchangeConnection instance for mocking.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET