Düzenle

Aracılığıyla paylaş


Folders Interface

Definition

Contains a set of Folder objects that represent all the available Outlook folders in a specific subset at one level of the folder tree.

public interface class Folders : Microsoft::Office::Interop::Outlook::_Folders, Microsoft::Office::Interop::Outlook::FoldersEvents_Event
[System.Runtime.InteropServices.Guid("00063040-0000-0000-C000-000000000046")]
public interface Folders : Microsoft.Office.Interop.Outlook._Folders, Microsoft.Office.Interop.Outlook.FoldersEvents_Event
Public Interface Folders
Implements _Folders, FoldersEvents_Event
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Folders. For information about the event members of the COM object, see FoldersEvents_Event.

Use the Folders property to return the Folders object from a NameSpace object or another Folder object.

Use Folders(index), where index is the name or index number, to return a single Folder object. Folder names are case-sensitive.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _Folders)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _Folders)
Count

Returns an Integer (int in C#) value indicating the count of objects in the specified collection. Read-only.

(Inherited from _Folders)
Item[Object]

Returns a Folder object from the collection.

(Inherited from _Folders)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _Folders)
RawTable

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Folders)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _Folders)

Methods

Add(String, Object)

Creates a new folder in the Folders collection.

(Inherited from _Folders)
GetFirst()

Returns the first object in the Folders collection.

(Inherited from _Folders)
GetLast()

Returns the last object in the Folders collection.

(Inherited from _Folders)
GetNext()

Returns the next object in the Folders collection.

(Inherited from _Folders)
GetPrevious()

Returns the previous object in the Folders collection.

(Inherited from _Folders)
Remove(Int32)

Removes an object from the collection.

(Inherited from _Folders)

Events

FolderAdd

Occurs when a folder is added to the specified Folders collection.

(Inherited from FoldersEvents_Event)
FolderChange

Occurs when a folder in the specified Folders collection is changed.

(Inherited from FoldersEvents_Event)
FolderRemove

Occurs when a folder is removed from the specified Folders collection.

(Inherited from FoldersEvents_Event)

Applies to