public void SetZoneAttributes(UrlZone zone, ZoneAttributes attributes) { attributes.Size = (uint)Marshal.SizeOf(attributes); if (this.izm.SetZoneAttributes((uint)zone, ref attributes) != 0) { throw new Exception(); } }
public ZoneAttributes GetZoneAttributes(UrlZone zone) { ZoneAttributes za = new ZoneAttributes(); if (this.izm.GetZoneAttributes((uint)zone, ref za) == 0) { return(za); } throw new Exception(); }