示例#1
0
 public PropertyError[] CopyAttachment(CoreAttachment destinationAttachment, CopyPropertiesFlags copyPropertiesFlags, CopySubObjects copySubObjects, NativeStorePropertyDefinition[] excludeProperties)
 {
     this.CheckDisposed(null);
     Util.ThrowOnNullArgument(destinationAttachment, "destinationAttachment");
     Util.ThrowOnNullArgument(excludeProperties, "excludeProperties");
     EnumValidator.ThrowIfInvalid <CopyPropertiesFlags>(copyPropertiesFlags, "copyPropertiesFlags");
     EnumValidator.ThrowIfInvalid <CopySubObjects>(copySubObjects, "copySubObjects");
     return(CoreObject.MapiCopyTo(this.PropertyBag.MapiProp, destinationAttachment.PropertyBag.MapiProp, this.Session, destinationAttachment.Session, copyPropertiesFlags, copySubObjects, excludeProperties));
 }
 private void CopyRequiredData(MapiMessage sourceMessage)
 {
     CoreObject.MapiCopyTo(sourceMessage, this.underlyingMessage, this.session, this.session, CopyPropertiesFlags.None, CopySubObjects.Copy, CoreCalendarItemVersion.ItemBodyAndAttachmentProperties);
 }