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

MSFT_DNSClientCache class

· 52CE 我爱测

Represents a record in a DNS client cache.

Represents a record in a DNS client cache.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

class MSFT_DNSClientCache : CIM_ManagedElement
{
  string InstanceId;
  string Caption;
  string Description;
  string ElementName;
  string Entry;
  string Name;
  uint16 Type;
  uint32 TimeToLive;
  uint16 DataLength;
  uint8  Section;
  string Data;
  uint32 Status;
};

Members

The MSFT_DNSClientCache class has these types of members:

Methods

The MSFT_DNSClientCache class has these methods.

Method Description
Clear Deletes the cache record from the DNS client cache.

Properties

The MSFT_DNSClientCache class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64), Dynamic

Gets the short description of the cache record.

This property is inherited from CIM_ManagedElement.

Data

Data type: string

Access type: Read-only

Gets the DNS record data from the cache record.

DataLength

Data type: uint16

Access type: Read-only

Gets the length of the cache record, in bytes.

Description

Data type: string

Access type: Read-only

Gets the description of the cache record.

This property is inherited from CIM_ManagedElement.

ElementName

Data type: string

Access type: Read-only

Gets the user-friendly name of the cache record.

This property is inherited from CIM_ManagedElement.

Entry

Data type: string

Access type: Read-only

Qualifiers: Key

Gets the resource name of the cache record.

InstanceId

Data type: string

Access type: Read-only

Gets the unique identifier of this object. The ID must be unique within the scope of the instantiating namespace.

This property is inherited from CIM_ManagedElement.

Name

Data type: string

Access type: Read-only

Qualifiers: Key

Gets the DNS record name of the cache record.

Section

Data type: uint8

Access type: Read-only

Gets the section of the DNS record from which the cache record originates.

This property contains one of the following values:

Value Meaning
1 Answer
2 Authority
3 Additional

Status

Data type: uint32

Access type: Read-only

Gets the status of the cache record.

This property contains one of the following values:

Value Meaning
0 Success
9003 NotExist
9701 NoRecords

TimeToLive

Data type: uint32

Access type: Read-only

Gets the time to live (TTL) for the cache record, in seconds, which indicates when the record will expire.

Type

Data type: uint16

Access type: Read-only

Gets the DNS record type of the cache record.

This property contains one of the following values:

Value Meaning
1 A
2 NS
5 CNAME
6 SOA
12 PTR
15 MX
28 AAAA
33 SRV

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Namespace Root\StandardCimv2
MOF DnsClientCim.mof
DLL DnsClientCim.dll

See also

Dnsclientcim Provider Classes

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors (upstream author metadata: windowssdkdev). 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)

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

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