共用方式為


IWithSrvRecordEntry<ParentT>.WithRecord Method

Definition

Specifies a service record for a service.

public Microsoft.Azure.Management.Dns.Fluent.DnsRecordSet.Definition.IWithSrvRecordEntryOrAttachable<ParentT> WithRecord (string target, int port, int priority, int weight);
abstract member WithRecord : string * int * int * int -> Microsoft.Azure.Management.Dns.Fluent.DnsRecordSet.Definition.IWithSrvRecordEntryOrAttachable<'ParentT>
Public Function WithRecord (target As String, port As Integer, priority As Integer, weight As Integer) As IWithSrvRecordEntryOrAttachable(Of ParentT)

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