CheckPropertyTypeUsage() private method

private CheckPropertyTypeUsage ( string errorMessage ) : void
errorMessage string
return void
Esempio n. 1
0
        public void DeletePropertyType(PropertyType propertyType)
        {
            if (propertyType == null)
            {
                throw new ArgumentNullException("propertyType");
            }
            if (propertyType.SchemaRoot != this)
            {
                throw new SchemaEditorCommandException(SR.Exceptions.Schema.Msg_InconsistentHierarchy);
            }

            propertyType.CheckPropertyTypeUsage(SR.Exceptions.Schema.Msg_ProtectedPropetyTypeDeleteViolation);

            // remove slot
            this.PropertyTypes.Remove(propertyType);
        }
Esempio n. 2
0
		public void DeletePropertyType(PropertyType propertyType)
		{
			if (propertyType == null)
				throw new ArgumentNullException("propertyType");
			if (propertyType.SchemaRoot != this)
				throw new SchemaEditorCommandException(SR.Exceptions.Schema.Msg_InconsistentHierarchy);

			propertyType.CheckPropertyTypeUsage(SR.Exceptions.Schema.Msg_ProtectedPropetyTypeDeleteViolation);

			//-- remove slot
			this.PropertyTypes.Remove(propertyType);
		}