Dela via


IWithSrvRecordEntry.WithRecord(String, Int32, Int32, Int32) Method

Definition

Specifies a service record for a service.

public Microsoft.Azure.Management.Dns.Fluent.DnsRecordSet.UpdateSrvRecordSet.IUpdateSrvRecordSet WithRecord (string target, int port, int priority, int weight);
abstract member WithRecord : string * int * int * int -> Microsoft.Azure.Management.Dns.Fluent.DnsRecordSet.UpdateSrvRecordSet.IUpdateSrvRecordSet
Public Function WithRecord (target As String, port As Integer, priority As Integer, weight As Integer) As IUpdateSrvRecordSet

Parameters

target
String

The canonical name of the target host running the service.

port
Int32

The port on which the service is bounded.

priority
Int32

The priority of the target host, lower the value higher the priority.

weight
Int32

The relative weight (preference) of the records with the same priority, higher the value more the preference.

Returns

Applies to