SenseNet.ContentRepository.Storage.Schema.NodeType.AddPropertyType C# (CSharp) Method

AddPropertyType() private method

private AddPropertyType ( PropertyType propertyType ) : void
propertyType PropertyType
return void
        internal override void AddPropertyType(PropertyType propertyType)
		{
			if (propertyType.IsContentListProperty)
				throw new SchemaEditorCommandException(String.Concat("ContentListProperty cannot be assegned to a NodeType. NodeType=", this.Name, ", PropertyType=", propertyType.Name));
			if (!this.PropertyTypes.Contains(propertyType))
				this.PropertyTypes.Add(propertyType);
			if (!_declaredPropertyTypes.Contains(propertyType))
				_declaredPropertyTypes.Add(propertyType);
			InheritPropertyType(propertyType);
		}
		private void InheritPropertyType(PropertyType propertyType)