public void ValidateUniqueName(INamedObjectCollection container, INamedObject namedObject, string proposedName) { this.ValidateName(proposedName); if (this.NameExist(container, namedObject, proposedName)) { throw new NameValidationException(System.Design.SR.GetString("CM_NameExist", new object[] { proposedName })); } }
public string CreateUniqueName(INamedObjectCollection container, string proposed) { if (!this.NameExist(container, proposed)) { this.ValidateName(proposed); return proposed; } return this.CreateUniqueName(container, proposed, 1); }
public string CreateUniqueName(INamedObjectCollection container, string proposed) { if (!this.NameExist(container, proposed)) { this.ValidateName(proposed); return(proposed); } return(this.CreateUniqueName(container, proposed, 1)); }
public string CreateUniqueName(INamedObjectCollection container, string proposedNameRoot, int startSuffix) { return this.CreateUniqueNameOnCollection(container, proposedNameRoot, startSuffix); }
public string CreateUniqueName(INamedObjectCollection container, Type type) { return this.CreateUniqueName(container, type.Name, 1); }
public void ValidateUniqueName(INamedObjectCollection container, string proposedName) { this.ValidateUniqueName(container, null, proposedName); }
public static INamedObject Find(INamedObjectCollection coll, string name) { return(Find(coll, name, false)); }
public static INamedObject Find(INamedObjectCollection coll, string name) { return Find(coll, name, false); }
public string CreateUniqueName(INamedObjectCollection container, string proposedNameRoot, int startSuffix) { return(this.CreateUniqueNameOnCollection(container, proposedNameRoot, startSuffix)); }
public string CreateUniqueName(INamedObjectCollection container, Type type) { return(this.CreateUniqueName(container, type.Name, 1)); }