[]
Adds a range of CustomPropertyDefinition objects to the collection.
public void AddRange(IEnumerable<CustomPropertyDefinition> collection)
Type | Name | Description |
---|---|---|
IEnumerable<CustomPropertyDefinition> | collection | A collection of CustomPropertyDefinition objects to add. |
var customProperties = new CustomPropertyDefinitionCollection();
var newProperties = new List<CustomPropertyDefinition>
{
new CustomPropertyDefinition { Name = "Property1", Value = "Value1" },
new CustomPropertyDefinition { Name = "Property2", Value = "Value2" }
};
customProperties.AddRange(newProperties);