コード例 #1
0
 public virtual void DeleteZoneRecord(string zoneName, DnsRecord record)
 {
     try
     {
         string rrType;
         if (!RecordTypes.rrTypeFromRecord.TryGetValue(record.RecordType, out rrType))
         {
             throw new Exception("Unknown record type");
         }
         ps.Remove_DnsServerResourceRecord(zoneName, record);
     }
     catch (Exception ex)
     {
         // log exception
         Log.WriteError(ex);
     }
 }