Dela via


ArmDnsModelFactory.DnsResourceReference Method

Definition

Initializes a new instance of DnsResourceReference.

public static Azure.ResourceManager.Dns.Models.DnsResourceReference DnsResourceReference (System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> dnsResources = default, Azure.Core.ResourceIdentifier targetResourceId = default);
static member DnsResourceReference : seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Dns.Models.DnsResourceReference
Public Shared Function DnsResourceReference (Optional dnsResources As IEnumerable(Of WritableSubResource) = Nothing, Optional targetResourceId As ResourceIdentifier = Nothing) As DnsResourceReference

Parameters

dnsResources
IEnumerable<WritableSubResource>

A list of dns Records.

targetResourceId
ResourceIdentifier

A reference to an azure resource from where the dns resource value is taken.

Returns

A new DnsResourceReference instance for mocking.

Applies to