ComplexPropertyDefinition<TComplexProperty extends ComplexProperty>.withFlags constructor

ComplexPropertyDefinition<TComplexProperty extends ComplexProperty>.withFlags(
  1. String xmlElementName,
  2. List<PropertyDefinitionFlags> flags,
  3. ExchangeVersion version,
  4. ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate,
)
Initializes a new instance of the Name of the XML element. The flags. The version. Delegate used to create instances of ComplexProperty.

Implementation

ComplexPropertyDefinition.withFlags(
    String xmlElementName,
    List<PropertyDefinitionFlags> flags,
    ExchangeVersion version,
    ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
    : super.withFlags(xmlElementName, flags, version) {
  EwsUtilities.Assert(
      propertyCreationDelegate != null,
      "ComplexPropertyDefinition ctor",
      "CreateComplexPropertyDelegate cannot be null");

  this.propertyCreationDelegate = propertyCreationDelegate;
}