Sdílet prostřednictvím


ArmNetworkModelFactory.ConnectivitySource Method

Definition

Initializes a new instance of ConnectivitySource.

public static Azure.ResourceManager.Network.Models.ConnectivitySource ConnectivitySource (Azure.Core.ResourceIdentifier resourceId = default, int? port = default);
static member ConnectivitySource : Azure.Core.ResourceIdentifier * Nullable<int> -> Azure.ResourceManager.Network.Models.ConnectivitySource
Public Shared Function ConnectivitySource (Optional resourceId As ResourceIdentifier = Nothing, Optional port As Nullable(Of Integer) = Nothing) As ConnectivitySource

Parameters

resourceId
ResourceIdentifier

The ID of the resource from which a connectivity check will be initiated.

port
Nullable<Int32>

The source port from which a connectivity check will be performed.

Returns

A new ConnectivitySource instance for mocking.

Applies to