Class UpdatePrerequisiteList
Preconditions for a update.
Implements
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class UpdatePrerequisiteList : List<ResourceRecord>, IList<ResourceRecord>, ICollection<ResourceRecord>, IList, ICollection, IReadOnlyList<ResourceRecord>, IReadOnlyCollection<ResourceRecord>, IEnumerable<ResourceRecord>, IEnumerable
Remarks
The list of ResourceRecord which must be satisfied before an UpdateMessage can proceed.
MustExist
and MustNotExist
are convenience methods to create the
various preconditions.
Methods
| Improve this Doc View SourceMustExist(DomainName)
At least one resource record with the specified name must exist in the Zone.
Declaration
public UpdatePrerequisiteList MustExist(DomainName name)
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Remarks
For this prerequisite, a requestor adds to the section a single RR whose NAME is equal to that of the name whose ownership of an RR is required. RDLENGTH is zero and RDATA is therefore empty. CLASS must be specified as ANY to differentiate this condition from that of an actual RR whose RDLENGTH is naturally zero (0) (e.g., NULL). TYPE must be specified as ANY to differentiate this case from that of an RRset existence test. TTL is specified as zero (0).
MustExist(DomainName, DnsType)
At least one resource record with the specified name and type must exist in the Zone.
Declaration
public UpdatePrerequisiteList MustExist(DomainName name, DnsType type)
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
DnsType | type | One of the RR TYPE codes. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Remarks
For this prerequisite, a requestor adds to the section a single RR whose NAME and TYPE are equal to that of the zone RRset whose existence is required. RDLENGTH is zero and RDATA is therefore empty. CLASS must be specified as ANY to differentiate this condition from that of an actual RR whose RDLENGTH is naturally zero (0) (e.g., NULL). TTL is specified as zero(0).
MustExist(ResourceRecord)
A resource record exists with the specified NAME, TYPE and RDATA.
Declaration
public UpdatePrerequisiteList MustExist(ResourceRecord resource)
Parameters
Type | Name | Description |
---|---|---|
ResourceRecord | resource | A resource record. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Remarks
For this prerequisite, a requestor adds to the section an entire RRset whose preexistence is required. NAME and TYPE are that of the RRset being denoted. CLASS is that of the zone. TTL must be specified as zero (0) and is ignored when comparing RRsets for identity.
MustExist<T>(DomainName)
At least one resource record with the specified name and type must exist in the Zone.
Declaration
public UpdatePrerequisiteList MustExist<T>(DomainName name)
where T : ResourceRecord, new()
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Type Parameters
Name | Description |
---|---|
T | A derived class of ResourceRecord. |
Remarks
For this prerequisite, a requestor adds to the section a single RR whose NAME is equal to that of the name whose ownership of an RR is required. RDLENGTH is zero and RDATA is therefore empty. CLASS must be specified as ANY to differentiate this condition from that of an actual RR whose RDLENGTH is naturally zero (0) (e.g., NULL). TYPE must be specified as ANY to differentiate this case from that of an RRset existence test. TTL is specified as zero (0).
MustNotExist(DomainName)
No resource record with the specified name can exist in the Zone.
Declaration
public UpdatePrerequisiteList MustNotExist(DomainName name)
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Remarks
For this prerequisite, a requestor adds to the section a single RR whose NAME is equal to that of the name whose nonownership of any RRs is required. RDLENGTH is zero and RDATA is therefore empty. CLASS must be specified as NONE. TYPE must be specified as ANY. TTL must be specified as zero (0).
MustNotExist(DomainName, DnsType)
No resource record with the specified name and type can exist in the Zone.
Declaration
public UpdatePrerequisiteList MustNotExist(DomainName name, DnsType type)
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
DnsType | type | One of the RR TYPE codes. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Remarks
For this prerequisite, a requestor adds to the section a single RR whose NAME and TYPE are equal to that of the RRset whose nonexistence is required. The RDLENGTH of this record is zero (0), and RDATA field is therefore empty. CLASS must be specified as NONE in order to distinguish this condition from a valid RR whose RDLENGTH is naturally zero (0) (for example, the NULL RR). TTL must be specified as zero(0).
MustNotExist<T>(DomainName)
No resource record with the specified name and type can exist in the Zone.
Declaration
public UpdatePrerequisiteList MustNotExist<T>(DomainName name)
where T : ResourceRecord, new()
Parameters
Type | Name | Description |
---|---|---|
DomainName | name | A resource name. |
Returns
Type | Description |
---|---|
UpdatePrerequisiteList | The prerequisite list to allow fluent usage. |
Type Parameters
Name | Description |
---|---|
T | A derived class of ResourceRecord. |
Remarks
For this prerequisite, a requestor adds to the section a single RR whose NAME and TYPE are equal to that of the RRset whose nonexistence is required. The RDLENGTH of this record is zero (0), and RDATA field is therefore empty. CLASS must be specified as NONE in order to distinguish this condition from a valid RR whose RDLENGTH is naturally zero (0) (for example, the NULL RR). TTL must be specified as zero(0).