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

MicrosoftDNS_KEYType class

· 52CE 我爱测

The subclass of MicrosoftDNS_ResourceRecord that represents a KEY Resource Record.

The subclass of MicrosoftDNS_ResourceRecord that represents a KEY Resource Record.

The following syntax is simplified from MOF code.

Syntax

class MicrosoftDNS_KEYType : MicrosoftDNS_ResourceRecord
{
  uint16 Flags;
  uint16 Protocol;
  uint16 Algorithm;
  string PublicKey;
};

Members

The MicrosoftDNS_KEYType class has these types of members:

Methods

The MicrosoftDNS_KEYType class has these methods.

Method Description
CreateInstanceFromPropertyData Instantiates a KEY Resource Record 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 WINS mapping flag, reverse look-up time out, WINS cache time out and domain name to append. It returns a reference to the new object as an output parameter. Qualifiers: Implemented, static
Modify Updates the TTL, mapping flag, look-up time out, cache time out, and result domain 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. Qualifiers: Implemented

Properties

The MicrosoftDNS_KEYType class has these properties.

Algorithm

Data type: uint16

Access type: Read-only

Algorithm used with the key specified in the resource record. The assigned values are shown in the following table.

Value Meaning
1 RSA/MD5 (RFC 2537)
2 Diffie-Hellman (RFC 2539)
3 DSA (RFC 2536)
4 Elliptic curve cryptography

Flags

Data type: uint16

Access type: Read-only

Flags used to specify mapping, as described in IETF RFC 2535.

Protocol

Data type: uint16

Access type: Read-only

Protocol for which the key specified in the resource record can be used. The assigned values are shown in the following table.

Value Meaning
1 TLS
2 E-Mail
3 DNSSEC
4 IPsec
255 All protocols

PublicKey

Data type: string

Access type: Read-only

Public key, represented in base 64 as described in Appendix A of RFC 2535.

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

CreateInstanceFromPropertyData Method of the MicrosoftDNS_KEYType Class

Modify Method of the MicrosoftDNS_KEYType Class

MicrosoftDNS_ResourceRecord

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)

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

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