This repository has been archived by the owner on Nov 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exception.cs
executable file
·73 lines (64 loc) · 2.28 KB
/
exception.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*---------------------------------------------------------------------
Copyright (C) Microsoft Corporation. All rights reserved.
This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation. See these other
materials for detailed information regarding Microsoft code samples.
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
----------------------------------------------------------------------- *
* File: Exception.cs
*
* Purpose: Managed representation of the IException interface
*
*
* Notes:
* This class does NOT subclass from System.Exception. It
* represents a cancelled or moved meeting.
*
*/
namespace PocketOutlook
{
using System;
using System.Runtime.InteropServices;
public class AppointmentException
{
private IntPtr m_pIAppointmentException;
private Appointment m_appointment;
private Application m_application;
internal AppointmentException(Application application,
Appointment appointment,
IntPtr pIAppointmentException)
{
m_application = application;
m_appointment = appointment;
m_pIAppointmentException = pIAppointmentException;
}
public bool Deleted
{
get
{
int bDeleted = 0;
PocketOutlook.CheckHRESULT(do_get_Deleted(m_pIAppointmentException, ref bDeleted));
return bDeleted == 0 ? false : true;
}
} // Deleted
public Appointment AppointmentItem
{
get
{
return m_appointment;
}
} // AppointmentItem
public Application Application
{
get
{
return m_application;
}
} // Application
[DllImport("PocketOutlook.dll", EntryPoint="IException_get_Deleted")]
private static extern int do_get_Deleted(IntPtr pIAppointmentException, ref int rbDeleted);
}
}