C# Class DNSManagement.RR.HINFOType

Represents a Host Information (HINFO) RR.
Inheritance: ResourceRecord
显示文件 Open project: drorgl/MSDNSWebAdmin

Public Methods

Method Description
CreateInstanceFromPropertyData ( Server server, string dnsServerName, string containerName, string ownerName, RecordClassEnum recordClass, System.TimeSpan ttl, string cpu, string os ) : HINFOType

Instantiates an HINFO of RR based on the data in the method's input parameters: the record's DNS Server Name, Container Name, Owner Name, class (default = IN), time-to-live value, and the host's CPU and operating system types. It returns a reference to the new object as an output parameter.

Modify ( System.TimeSpan ttl, string cpu, string os ) : HINFOType

Updates the TTL, CPU, and operating system 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
HINFOType ( System.Management.ManagementObject mo ) : System

Method Details

CreateInstanceFromPropertyData() public static method

Instantiates an HINFO of RR based on the data in the method's input parameters: the record's DNS Server Name, Container Name, Owner Name, class (default = IN), time-to-live value, and the host's CPU and operating system types. It returns a reference to the new object as an output parameter.
public static CreateInstanceFromPropertyData ( Server server, string dnsServerName, string containerName, string ownerName, RecordClassEnum recordClass, System.TimeSpan ttl, string cpu, string os ) : HINFOType
server Server Server object
dnsServerName string FQDN or IP address of the DNS Server that contains this RR.
containerName string Name of the Container for the Zone, Cache, or RootHints instance which contains this RR.
ownerName string Owner name for the RR.
recordClass RecordClassEnum Optional - Class of the RR
ttl System.TimeSpan Optional - Time, in seconds, that the RR can be cached by a DNS resolver.
cpu string CPU type of the record owner.
os string Operating system of the record owner.
return HINFOType

Modify() public method

Updates the TTL, CPU, and operating system 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, string cpu, string os ) : HINFOType
ttl System.TimeSpan Optional - Time, in seconds, that the RR can be cached by a DNS resolver.
cpu string Optional - CPU type of the record owner.
os string Optional - Operating system of the record owner.
return HINFOType

ToString() public method

public ToString ( ) : string
return string