Пример #1
0
        public Note GetNote(int index)
        {
            TableContext tc = GetContentsTable();

            if (tc != null)
            {
                if (index < tc.RowCount)
                {
                    // dwRowID is the MessageID
                    NodeID nodeID = new NodeID(tc.GetRowID(index));
                    Note   note   = Note.GetNote(this.File, nodeID);
                    return(note);
                }
            }
            return(null);
        }
Пример #2
0
        public MessageObject GetMessage(int index)
        {
            TableContext tc = GetContentsTable();

            if (tc != null)
            {
                if (index < tc.RowCount)
                {
                    // dwRowID is the MessageID
                    NodeID        nodeID  = new NodeID(tc.GetRowID(index));
                    MessageObject message = this.File.GetMessage(nodeID);
                    return(message);
                }
            }
            return(null);
        }
Пример #3
0
        public Appointment GetAppointment(int index)
        {
            TableContext tc = GetContentsTable();

            if (tc != null)
            {
                if (index < tc.RowCount)
                {
                    // dwRowID is the MessageID
                    NodeID      nodeID      = new NodeID(tc.GetRowID(index));
                    Appointment appointment = Appointment.GetAppointment(this.File, nodeID);
                    return(appointment);
                }
            }
            return(null);
        }
Пример #4
0
        public PSTFolder FindChildFolder(string displayNameToFind)
        {
            TableContext tc = GetHierarchyTable();

            if (tc != null)
            {
                for (int index = 0; index < tc.RowCount; index++)
                {
                    string displayName = tc.GetStringProperty(index, PropertyID.PidTagDisplayName);
                    if (displayName == displayNameToFind)
                    {
                        NodeID childNodeID = new NodeID(tc.GetRowID(index));
                        return(PSTFolder.GetFolder(File, childNodeID));
                    }
                }
            }

            return(null);
        }
Пример #5
0
        public List <PSTFolder> GetChildFolders()
        {
            TableContext tc = GetHierarchyTable();

            List <PSTFolder> result = new List <PSTFolder>();

            if (tc != null)
            {
                for (int index = 0; index < tc.RowCount; index++)
                {
                    // dwRowID is the NodeID
                    NodeID childNodeID = new NodeID(tc.GetRowID(index));
                    if (childNodeID.nidType == NodeTypeName.NID_TYPE_NORMAL_FOLDER)
                    {
                        PSTFolder childFolder = PSTFolder.GetFolder(File, childNodeID);
                        result.Add(childFolder);
                    }
                }
            }
            return(result);
        }