Class UpdateResourceList
Resource records to add or delete from the zone.
Implements
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class UpdateResourceList : List<ResourceRecord>, IList<ResourceRecord>, ICollection<ResourceRecord>, IList, ICollection, IReadOnlyList<ResourceRecord>, IReadOnlyCollection<ResourceRecord>, IEnumerable<ResourceRecord>, IEnumerable
Remarks
The list of ResourceRecord which are adde or deleted from the Zone.
AddResource
and DeleteResource
are convenience methods to specify
the update operations.
Methods
| Improve this Doc View SourceAddResource(ResourceRecord)
Add the resource to the zone.
Declaration
public UpdateResourceList AddResource(ResourceRecord resource)
Parameters
Type | Name | Description |
---|---|---|
ResourceRecord | resource | The ResourceRecord to add to the zone. |
Returns
Type | Description |
---|---|
UpdateResourceList | The update resource list to allow fluent usage. |
Remarks
Equivalent to Add(T).
A duplicate ResourceRecord will be silently ignored by the primary master.
DeleteResource(DomainName)
Delete the resource records with the specifified name.
Declaration
public UpdateResourceList DeleteResource(DomainName name)
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
Returns
Type | Description |
---|---|
UpdateResourceList | The update resource list to allow fluent usage. |
Remarks
TYPE must be specified as ANY. TTL must be specified as zero(0) and is otherwise not used by the primary master. CLASS must be specified as ANY. RDLENGTH must be zero(0) and RDATA must therefore be empty.
If no such RRsets exist, then this Update RR will be silently ignored by the primary master.
DeleteResource(DomainName, DnsType)
Delete the resource records with the specifified name and type.
Declaration
public UpdateResourceList DeleteResource(DomainName name, DnsType type)
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
DnsType | type | One of the RR TYPE codes. |
Returns
Type | Description |
---|---|
UpdateResourceList | The update resource list to allow fluent usage. |
Remarks
TTL must be specified as zero(0) and is otherwise not used by the primary master. CLASS must be specified as ANY. RDLENGTH must be zero(0) and RDATA must therefore be empty.
If no such RRsets exist, then this Update RR will be silently ignored by the primary master.
See Also
| Improve this Doc View SourceDeleteResource(ResourceRecord)
Delete the resource record from the zone.
Declaration
public UpdateResourceList DeleteResource(ResourceRecord resource)
Parameters
Type | Name | Description |
---|---|---|
ResourceRecord | resource | The ResourceRecord to delete from the zone. |
Returns
Type | Description |
---|---|
UpdateResourceList | The update resource list to allow fluent usage. |
Remarks
The NAME, TYPE, RDLENGTH and RDATA must match the RR being deleted. TTL must be specified as zero(0) and will otherwise be ignored by the primary master. CLASS must be specified as NONE to distinguish this from an RR addition.
If no such RRsets exist, then this Update RR will be silently ignored by the primary master.
DeleteResource<T>(DomainName)
Delete the resource records with the specifified name and type.
Declaration
public UpdateResourceList DeleteResource<T>(DomainName name)
where T : ResourceRecord, new()
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
Returns
Type | Description |
---|---|
UpdateResourceList | The update resource list to allow fluent usage. |
Type Parameters
Name | Description |
---|---|
T | A derived class of ResourceRecord. |
Remarks
TTL must be specified as zero(0) and is otherwise not used by the primary master. CLASS must be specified as ANY. RDLENGTH must be zero(0) and RDATA must therefore be empty.
If no such RRsets exist, then this Update RR will be silently ignored by the primary master.