internal void ReplaceSubnets(IEnumerable <DatabaseAvailabilityGroupSubnetId> newSubnetIds) { this.Subnets.Clear(); foreach (DatabaseAvailabilityGroupSubnetId netId in newSubnetIds) { DatabaseAvailabilityGroupNetworkSubnet item = new DatabaseAvailabilityGroupNetworkSubnet(netId); this.Subnets.Add(item); } }
public override bool Equals(object obj) { DatabaseAvailabilityGroupNetworkSubnet databaseAvailabilityGroupNetworkSubnet = obj as DatabaseAvailabilityGroupNetworkSubnet; return(databaseAvailabilityGroupNetworkSubnet != null && this.SubnetId.IPRange.Equals(databaseAvailabilityGroupNetworkSubnet.SubnetId.IPRange)); }
public DatabaseAvailabilityGroupSubnetId(DatabaseAvailabilityGroupNetworkSubnet subnet) { this.m_ipRange = subnet.SubnetId.IPRange; }