大网数据广告活动
网络与域名解析

MicrosoftDNS_ResourceRecord class

· 52CE 我爱测

The MicrosoftDNS_ResourceRecord class represents the general properties of a DNS RR.The following syntax is simplified from MOF code.

The MicrosoftDNS_ResourceRecord class represents the general properties of a DNS RR.

The following syntax is simplified from MOF code.

Syntax

class MicrosoftDNS_ResourceRecord : CIM_LogicalElement
{
  string DnsServerName;
  string ContainerName;
  string DomainName;
  string OwnerName;
  uint16 RecordClass=1;
  uint32 TTL;
  uint32 TimeStamp;
  string RecordData;
  string TextRepresentation;
};

Members

The MicrosoftDNS_ResourceRecord class has these types of members:

Methods

The MicrosoftDNS_ResourceRecord class has these methods.

Method Description
CreateInstanceFromTextRepresentation Parses the RR in the TextRepresentation string, and with the input DNS Server and Container Names, defines, and instantiates a ResourceRecord object. The method returns a reference to the new object as an output parameter. Qualifiers: None
GetObjectByTextRepresentation Retrieves an existing instance of the MicrosoftDns_ResourceRecord subclass, represented by the TextRepresentation string along with the DNS Server and Container Name. Qualifiers: None

Properties

The MicrosoftDNS_ResourceRecord class has these properties.

ContainerName

Data type: string

Access type: Read-only

Indicates the name of the Container for the Zone, Cache, or RootHints instance that contains the RR.

DnsServerName

Data type: string

Access type: Read-only

Indicates the FQDN or IP address of the DNS Server that contains the RR.

DomainName

Data type: string

Access type: Read-only

Represents the FQDN of the Domain that contains the RR. This property may contain the strings \..Cache\ or \..RootHints\ if the internal cache or RootHints contain the RR, respectively.

OwnerName

Data type: string

Access type: Read-only

Owner name for the RR.

RecordClass=1

Data type: uint16

Access type: Read-only

**Windows Server 2003: **

This string represents the class of the Resource Record. Valid values include:

1: IN (Internet)

2: CS (CSNET)

3: CH (CHAOS)

4: HS (Hesiod)

RecordData

Data type: string

Access type: Read-only

Resource record data.

TextRepresentation

Data type: string

Access type: Read-only

Text representation of the entire RR.

TimeStamp

Data type: uint32

Access type: Read-only

Time at which the RR was last refreshed, expressed in elapsed hours since January 1, 1601, Greenwich Mean Time (GMT).

TTL

Data type: uint32

Access type: Read-only

Time, in seconds, that the RR can be cached by a DNS resolver.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Namespace Root\MicrosoftDNS
MOF Dnsprov.mof

See also

CreateInstanceFromTextRepresentation Method of the MicrosoftDNS_ResourceRecord Class

GetObjectByTextRepresentation Method of the MicrosoftDNS_ResourceRecord Class

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。