C# Class DNSManagement.RR.MXType

Represents a Mail Exchanger (MX) RR.
Inheritance: ResourceRecord
显示文件 Open project: drorgl/MSDNSWebAdmin

Public Methods

Method Description
Modify ( System.TimeSpan ttl, UInt16 preference, string mailExchange ) : MXType

Updates the TTL, Preference, and Mail Exchange to the values specified as the input parameters of this method. If a new value for a parameter is not specified, then the current value for the parameter is not changed. The method returns a reference to the modified object as an output parameter.

ToString ( ) : string

Private Methods

Method Description
CreateInstanceFromPropertyData ( Server server, string dnsServerName, string containerName, string ownerName, RecordClassEnum recordClass, System.TimeSpan ttl, UInt16 preference, string mailExchange ) : MXType
MXType ( System.Management.ManagementObject mo ) : System

Method Details

Modify() public method

Updates the TTL, Preference, and Mail Exchange to the values specified as the input parameters of this method. If a new value for a parameter is not specified, then the current value for the parameter is not changed. The method returns a reference to the modified object as an output parameter.
public Modify ( System.TimeSpan ttl, UInt16 preference, string mailExchange ) : MXType
ttl System.TimeSpan Optional - Time, in seconds, that the RR can be cached by a DNS resolver.
preference System.UInt16 Optional - Preference given to this RR among others at the same owner. Lower values are preferred.
mailExchange string Optional - FQDN specifying a host willing to act as a mail exchange for the owner name.
return MXType

ToString() public method

public ToString ( ) : string
return string