MSFT_DNSClientCache class

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

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