/// <summary>
 /// Initializes a new instance of the
 /// MicrosoftDynamicsCRMactivitymimeattachment class.
 /// </summary>
 public MicrosoftDynamicsCRMactivitymimeattachment(int?componentstate = default(int?), long?versionnumber = default(long?), string _owneridValue = default(string), string subject = default(string), int?filesize = default(int?), bool?isfollowed = default(bool?), bool?ismanaged = default(bool?), string activitymimeattachmentid = default(string), string _owninguserValue = default(string), string attachmentcontentid = default(string), string _attachmentidValue = default(string), string objecttypecode = default(string), string _owningbusinessunitValue = default(string), string _objectidValue = default(string), string activitymimeattachmentidunique = default(string), string mimetype = default(string), string activitysubject = default(string), string solutionid = default(string), int?attachmentnumber = default(int?), string anonymouslink = default(string), string filename = default(string), string body = default(string), object bodyBinary = default(object), System.DateTimeOffset?overwritetime = default(System.DateTimeOffset?), IList <MicrosoftDynamicsCRMsyncerror> activityMimeAttachmentSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMemail objectidEmail = default(MicrosoftDynamicsCRMemail), MicrosoftDynamicsCRMactivitypointer objectidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), MicrosoftDynamicsCRMtemplate objectidTemplate = default(MicrosoftDynamicsCRMtemplate), MicrosoftDynamicsCRMattachment attachmentid = default(MicrosoftDynamicsCRMattachment), MicrosoftDynamicsCRMappointment objectidAppointment = default(MicrosoftDynamicsCRMappointment), IList <MicrosoftDynamicsCRMasyncoperation> activityMimeAttachmentAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMbulkdeletefailure> activityMimeAttachmentBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>))
 {
     Componentstate                 = componentstate;
     Versionnumber                  = versionnumber;
     this._owneridValue             = _owneridValue;
     Subject                        = subject;
     Filesize                       = filesize;
     Isfollowed                     = isfollowed;
     Ismanaged                      = ismanaged;
     Activitymimeattachmentid       = activitymimeattachmentid;
     this._owninguserValue          = _owninguserValue;
     Attachmentcontentid            = attachmentcontentid;
     this._attachmentidValue        = _attachmentidValue;
     Objecttypecode                 = objecttypecode;
     this._owningbusinessunitValue  = _owningbusinessunitValue;
     this._objectidValue            = _objectidValue;
     Activitymimeattachmentidunique = activitymimeattachmentidunique;
     Mimetype                       = mimetype;
     Activitysubject                = activitysubject;
     Solutionid                     = solutionid;
     Attachmentnumber               = attachmentnumber;
     Anonymouslink                  = anonymouslink;
     Filename                       = filename;
     Body          = body;
     BodyBinary    = bodyBinary;
     Overwritetime = overwritetime;
     ActivityMimeAttachmentSyncErrors = activityMimeAttachmentSyncErrors;
     ObjectidEmail           = objectidEmail;
     ObjectidActivitypointer = objectidActivitypointer;
     ObjectidTemplate        = objectidTemplate;
     Attachmentid            = attachmentid;
     ObjectidAppointment     = objectidAppointment;
     ActivityMimeAttachmentAsyncOperations    = activityMimeAttachmentAsyncOperations;
     ActivityMimeAttachmentBulkDeleteFailures = activityMimeAttachmentBulkDeleteFailures;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the MicrosoftDynamicsCRMemail class.
 /// </summary>
 public MicrosoftDynamicsCRMemail(string reminderactioncardid = default(string), string trackingtoken = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), bool?readreceiptrequested = default(bool?), bool?compressed = default(bool?), string emailremindertext = default(string), System.DateTimeOffset?emailreminderexpirytime = default(System.DateTimeOffset?), int?isunsafe = default(int?), string subcategory = default(string), string _parentactivityidValue = default(string), System.DateTimeOffset?postponeemailprocessinguntil = default(System.DateTimeOffset?), string category = default(string), int?replycount = default(int?), bool?directioncode = default(bool?), int?correlationmethod = default(int?), string _sendersaccountValue = default(string), int?emailreminderstatus = default(int?), int?linksclickedcount = default(int?), string submittedby = default(string), string _emailsenderValue = default(string), bool?deliveryreceiptrequested = default(bool?), int?notifications = default(int?), string conversationtrackingid = default(string), int?deliveryattempts = default(int?), int?opencount = default(int?), string torecipients = default(string), System.DateTimeOffset?delayedemailsendtime = default(System.DateTimeOffset?), bool?followemailuserpreference = default(bool?), string _templateidValue = default(string), string emailtrackingid = default(string), string inreplyto = default(string), string mimetype = default(string), string messageid = default(string), int?attachmentcount = default(int?), System.DateTimeOffset?lastopenedtime = default(System.DateTimeOffset?), int?importsequencenumber = default(int?), bool?isemailreminderset = default(bool?), bool?isemailfollowed = default(bool?), string conversationindex = default(string), int?emailremindertype = default(int?), int?baseconversationindexhash = default(int?), string sender = default(string), int?attachmentopencount = default(int?), MicrosoftDynamicsCRMgovCommunity regardingobjectidGovCommunityEmail = default(MicrosoftDynamicsCRMgovCommunity), MicrosoftDynamicsCRMgovIncidenttask regardingobjectidGovIncidenttaskEmail = default(MicrosoftDynamicsCRMgovIncidenttask), MicrosoftDynamicsCRMgovRegistration regardingobjectidGovRegistrationEmail = default(MicrosoftDynamicsCRMgovRegistration), MicrosoftDynamicsCRMlead regardingobjectidLeadEmail = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMlead emailsenderLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebookingEmail = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheaderEmail = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperationEmail = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaignEmail = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivityEmail = default(MicrosoftDynamicsCRMcampaignactivity), IList <MicrosoftDynamicsCRMcampaignresponse> emailCampaignresponse = default(IList <MicrosoftDynamicsCRMcampaignresponse>), MicrosoftDynamicsCRMcontract regardingobjectidContractEmail = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlementEmail = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplateEmail = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMincident regardingobjectidIncidentEmail = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMsite regardingobjectidSiteEmail = default(MicrosoftDynamicsCRMsite), MicrosoftDynamicsCRMequipment emailsenderEquipment = default(MicrosoftDynamicsCRMequipment), MicrosoftDynamicsCRMservice serviceidEmail = default(MicrosoftDynamicsCRMservice), MicrosoftDynamicsCRMmsdynPlaybookinstance regardingobjectidMsdynPlaybookinstanceEmail = default(MicrosoftDynamicsCRMmsdynPlaybookinstance), MicrosoftDynamicsCRMinvoice regardingobjectidInvoiceEmail = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunityEmail = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingobjectidQuoteEmail = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesorder regardingobjectidSalesorderEmail = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMmsdynPostalbum regardingobjectidMsdynPostalbumEmail = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecordEmail = default(MicrosoftDynamicsCRMknowledgebaserecord), IList <MicrosoftDynamicsCRMsyncerror> emailSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyidEmail = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMasyncoperation regardingobjectidAsyncoperation = default(MicrosoftDynamicsCRMasyncoperation), MicrosoftDynamicsCRMaccount sendersaccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMaccount emailsenderAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), MicrosoftDynamicsCRMsla slaEmailSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMasyncoperation> emailAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMduplicaterecord> emailDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMconnection> emailConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMmailbox sendermailboxidEmail = default(MicrosoftDynamicsCRMmailbox), IList <MicrosoftDynamicsCRMactivitymimeattachment> emailActivityMimeAttachment = default(IList <MicrosoftDynamicsCRMactivitymimeattachment>), IList <MicrosoftDynamicsCRMslakpiinstance> slakpiinstanceEmail = default(IList <MicrosoftDynamicsCRMslakpiinstance>), IList <MicrosoftDynamicsCRMconnection> emailConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMbusinessunit owningbusinessunitEmail = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMcontact emailsenderContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMsystemuser owninguserEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedbyEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteamEmail = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMqueue emailsenderQueue = default(MicrosoftDynamicsCRMqueue), MicrosoftDynamicsCRMsla slainvokedidEmailSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMannotation> emailAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMbulkdeletefailure> emailBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprocesssession> emailProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), MicrosoftDynamicsCRMsystemuser createdonbehalfbyEmail = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMactivityparty> emailActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticleEmail = default(MicrosoftDynamicsCRMknowledgearticle), IList <MicrosoftDynamicsCRMactioncard> emailActioncard = default(IList <MicrosoftDynamicsCRMactioncard>), IList <MicrosoftDynamicsCRMduplicaterecord> emailDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> emailPrincipalobjectattributeaccess = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMaccount regardingobjectidAccountEmail = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdbyEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser emailsenderSystemuser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMtemplate templateid = default(MicrosoftDynamicsCRMtemplate), MicrosoftDynamicsCRMprocessstage stageidProcessstage = default(MicrosoftDynamicsCRMprocessstage), MicrosoftDynamicsCRMcontact regardingobjectidContactEmail = default(MicrosoftDynamicsCRMcontact), IList <MicrosoftDynamicsCRMqueueitem> emailQueueItem = default(IList <MicrosoftDynamicsCRMqueueitem>), MicrosoftDynamicsCRMemail parentactivityid = default(MicrosoftDynamicsCRMemail), IList <MicrosoftDynamicsCRMemail> emailEmailParentactivityid = default(IList <MicrosoftDynamicsCRMemail>))
 {
     Reminderactioncardid    = reminderactioncardid;
     Trackingtoken           = trackingtoken;
     Overriddencreatedon     = overriddencreatedon;
     Readreceiptrequested    = readreceiptrequested;
     Compressed              = compressed;
     Emailremindertext       = emailremindertext;
     Emailreminderexpirytime = emailreminderexpirytime;
     Isunsafe    = isunsafe;
     Subcategory = subcategory;
     this._parentactivityidValue  = _parentactivityidValue;
     Postponeemailprocessinguntil = postponeemailprocessinguntil;
     Category                  = category;
     Replycount                = replycount;
     Directioncode             = directioncode;
     Correlationmethod         = correlationmethod;
     this._sendersaccountValue = _sendersaccountValue;
     Emailreminderstatus       = emailreminderstatus;
     Linksclickedcount         = linksclickedcount;
     Submittedby               = submittedby;
     this._emailsenderValue    = _emailsenderValue;
     Deliveryreceiptrequested  = deliveryreceiptrequested;
     Notifications             = notifications;
     Conversationtrackingid    = conversationtrackingid;
     Deliveryattempts          = deliveryattempts;
     Opencount                 = opencount;
     Torecipients              = torecipients;
     Delayedemailsendtime      = delayedemailsendtime;
     Followemailuserpreference = followemailuserpreference;
     this._templateidValue     = _templateidValue;
     Emailtrackingid           = emailtrackingid;
     Inreplyto                 = inreplyto;
     Mimetype                  = mimetype;
     Messageid                 = messageid;
     Attachmentcount           = attachmentcount;
     Lastopenedtime            = lastopenedtime;
     Importsequencenumber      = importsequencenumber;
     Isemailreminderset        = isemailreminderset;
     Isemailfollowed           = isemailfollowed;
     Conversationindex         = conversationindex;
     Emailremindertype         = emailremindertype;
     Baseconversationindexhash = baseconversationindexhash;
     Sender = sender;
     Attachmentopencount = attachmentopencount;
     RegardingobjectidGovCommunityEmail    = regardingobjectidGovCommunityEmail;
     RegardingobjectidGovIncidenttaskEmail = regardingobjectidGovIncidenttaskEmail;
     RegardingobjectidGovRegistrationEmail = regardingobjectidGovRegistrationEmail;
     RegardingobjectidLeadEmail            = regardingobjectidLeadEmail;
     EmailsenderLead = emailsenderLead;
     RegardingobjectidBookableresourcebookingEmail       = regardingobjectidBookableresourcebookingEmail;
     RegardingobjectidBookableresourcebookingheaderEmail = regardingobjectidBookableresourcebookingheaderEmail;
     RegardingobjectidBulkoperationEmail    = regardingobjectidBulkoperationEmail;
     RegardingobjectidCampaignEmail         = regardingobjectidCampaignEmail;
     RegardingobjectidCampaignactivityEmail = regardingobjectidCampaignactivityEmail;
     EmailCampaignresponse                     = emailCampaignresponse;
     RegardingobjectidContractEmail            = regardingobjectidContractEmail;
     RegardingobjectidEntitlementEmail         = regardingobjectidEntitlementEmail;
     RegardingobjectidEntitlementtemplateEmail = regardingobjectidEntitlementtemplateEmail;
     RegardingobjectidIncidentEmail            = regardingobjectidIncidentEmail;
     RegardingobjectidSiteEmail                = regardingobjectidSiteEmail;
     EmailsenderEquipment = emailsenderEquipment;
     ServiceidEmail       = serviceidEmail;
     RegardingobjectidMsdynPlaybookinstanceEmail = regardingobjectidMsdynPlaybookinstanceEmail;
     RegardingobjectidInvoiceEmail             = regardingobjectidInvoiceEmail;
     RegardingobjectidOpportunityEmail         = regardingobjectidOpportunityEmail;
     RegardingobjectidQuoteEmail               = regardingobjectidQuoteEmail;
     RegardingobjectidSalesorderEmail          = regardingobjectidSalesorderEmail;
     RegardingobjectidMsdynPostalbumEmail      = regardingobjectidMsdynPostalbumEmail;
     RegardingobjectidKnowledgebaserecordEmail = regardingobjectidKnowledgebaserecordEmail;
     EmailSyncErrors                 = emailSyncErrors;
     TransactioncurrencyidEmail      = transactioncurrencyidEmail;
     RegardingobjectidAsyncoperation = regardingobjectidAsyncoperation;
     Sendersaccount            = sendersaccount;
     EmailsenderAccount        = emailsenderAccount;
     ActivityidActivitypointer = activityidActivitypointer;
     SlaEmailSla                            = slaEmailSla;
     EmailAsyncOperations                   = emailAsyncOperations;
     EmailDuplicateBaseRecord               = emailDuplicateBaseRecord;
     EmailConnections1                      = emailConnections1;
     SendermailboxidEmail                   = sendermailboxidEmail;
     EmailActivityMimeAttachment            = emailActivityMimeAttachment;
     SlakpiinstanceEmail                    = slakpiinstanceEmail;
     EmailConnections2                      = emailConnections2;
     OwningbusinessunitEmail                = owningbusinessunitEmail;
     EmailsenderContact                     = emailsenderContact;
     OwninguserEmail                        = owninguserEmail;
     ModifiedbyEmail                        = modifiedbyEmail;
     OwningteamEmail                        = owningteamEmail;
     EmailsenderQueue                       = emailsenderQueue;
     SlainvokedidEmailSla                   = slainvokedidEmailSla;
     EmailAnnotation                        = emailAnnotation;
     EmailBulkDeleteFailures                = emailBulkDeleteFailures;
     EmailProcessSessions                   = emailProcessSessions;
     CreatedonbehalfbyEmail                 = createdonbehalfbyEmail;
     EmailActivityParties                   = emailActivityParties;
     RegardingobjectidKnowledgearticleEmail = regardingobjectidKnowledgearticleEmail;
     EmailActioncard                        = emailActioncard;
     EmailDuplicateMatchingRecord           = emailDuplicateMatchingRecord;
     EmailPrincipalobjectattributeaccess    = emailPrincipalobjectattributeaccess;
     ModifiedonbehalfbyEmail                = modifiedonbehalfbyEmail;
     RegardingobjectidAccountEmail          = regardingobjectidAccountEmail;
     CreatedbyEmail                         = createdbyEmail;
     EmailsenderSystemuser                  = emailsenderSystemuser;
     Templateid                    = templateid;
     StageidProcessstage           = stageidProcessstage;
     RegardingobjectidContactEmail = regardingobjectidContactEmail;
     EmailQueueItem                = emailQueueItem;
     Parentactivityid              = parentactivityid;
     EmailEmailParentactivityid    = emailEmailParentactivityid;
     CustomInit();
 }