Removes the DNS record with the specified name, type, and data
Namespace:
JHSoftware.SimpleDNSPlusAssembly: SDNSAPI (in SDNSAPI)
Version: 1.1.0.0 (1.1.0.0)
Syntax
| C# |
|---|
public int Remove( string name, string type, params string[] data ) |
| Visual Basic (Declaration) |
|---|
Public Function Remove ( _ name As String, _ type As String, _ ParamArray data As String() _ ) As Integer |
Parameters
- name
- Type: System..::.String
Domain name (FQDN) of the record to remove
- type
- Type: System..::.String
The type of the record to remove. For example "A" or "MX".
- data
- Type: array<System..::.String>[]()[]
One or more string values (depending on the record type) containing the data of the record. IMPORTANT: The number of data parameters must match exactly the number of data fields for the record type (see "Record types and data fields").
Return Value
The number of DNS records that were removed
Remarks
SOA-records cannot be removed