The subclass of MicrosoftDNS_ResourceRecord that represents a Service (SRV) record.
The following syntax is simplified from MOF code.
Syntax
class MicrosoftDNS_SRVType : MicrosoftDNS_ResourceRecord
{
uint16 Priority;
uint16 Weight;
uint16 Port;
string SRVDomainName;
};
Members
The MicrosoftDNS_SRVType class has these types of members:
Methods
The MicrosoftDNS_SRVType class has these methods.
| Method | Description |
|---|---|
| CreateInstanceFromPropertyData | Instantiates an SRV Type of RR based on the data in the method's input parameters: the record's DNS Server Name, Container Name, Owner/target Name, class (default = IN), time-to-live value, and target host's priority, weight, port, and domain name. It returns a reference to the new object as an output parameter. Qualifiers: Implemented, static |
| Modify | Updates the TTL, Priority, Weight, Port, and Domain Name 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_SRVType class has these properties.
Port
Data type: uint16
Access type: Read-only
Port used on the target host of a protocol service.
Priority
Data type: uint16
Access type: Read-only
Priority of the target host specified in the owner name. Lower numbers imply higher priorities.
SRVDomainName
Data type: string
Access type: Read-only
FQDN of the target host. A target of \.\ means that the service is decidedly not available at this domain.
Weight
Data type: uint16
Access type: Read-only
Weight of the target host. This is useful when selecting among hosts that have the same priority. The chances of using this host should be proportional to its weight.
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_SRVType Class
Modify Method of the MicrosoftDNS_SRVType 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.
