_AppointmentItem.CopyTo(MAPIFolder, OlAppointmentCopyOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the AppointmentItem to the folder that is specified by the DestinationFolder
parameter and returns an object that represents the item created in the destination folder by the copy operation.
public:
Microsoft::Office::Interop::Outlook::AppointmentItem ^ CopyTo(Microsoft::Office::Interop::Outlook::MAPIFolder ^ DestinationFolder, Microsoft::Office::Interop::Outlook::OlAppointmentCopyOptions CopyOptions);
public Microsoft.Office.Interop.Outlook.AppointmentItem CopyTo (Microsoft.Office.Interop.Outlook.MAPIFolder DestinationFolder, Microsoft.Office.Interop.Outlook.OlAppointmentCopyOptions CopyOptions);
Public Function CopyTo (DestinationFolder As MAPIFolder, CopyOptions As OlAppointmentCopyOptions) As AppointmentItem
Parameters
- DestinationFolder
- MAPIFolder
Specifies the folder to which the AppointmentItem object is copied.
- CopyOptions
- OlAppointmentCopyOptions
Specifies the user experience of the copy operation.
Returns
Returns an AppointmentItem object that represents the object created in the destination folder as a result of the copy operation.
Remarks
If no argument is specified for the CopyOptions
parameter, CopyTo assumes that the value is olCreateAppointment.
CopyTo returns an error if the destination folder is not an appropriate folder type for an AppointmentItem object, or if the user does not have the necessary permissions to create items in the specified destination folder.
Setting the REG_MULTI_SZ value, DisableCrossAccountCopy, in HKCU\Software\Microsoft\Office\14.0\Outlook in the Windows registry has the side effect of disabling this method.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應