Modifica

Condividi tramite


Views Interface

Definition

Contains a collection of all View objects in the current folder.

public interface class Views : Microsoft::Office::Interop::Outlook::_Views, Microsoft::Office::Interop::Outlook::_ViewsEvents_Event
[System.Runtime.InteropServices.Guid("0006308D-0000-0000-C000-000000000046")]
public interface Views : Microsoft.Office.Interop.Outlook._Views, Microsoft.Office.Interop.Outlook._ViewsEvents_Event
Public Interface Views
Implements _Views, _ViewsEvents_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 _Views. For information about the event members of the COM object, see ViewsClass.

Use the Views property of the Folder object to return the Views collection. Use Views(index),where index is the object's name or position within the collection, to return a single View object.

Use the Add(String, OlViewType, OlViewSaveOption) method of the views collection to add a new view to the collection.

Use the Remove(Object) method to remove a view from the collection.

Properties

Application

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

(Inherited from _Views)
Class

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

(Inherited from _Views)
Count

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

(Inherited from _Views)
Item[Object]

Returns an View object from the collection.

(Inherited from _Views)
Parent

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

(Inherited from _Views)
Session

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

(Inherited from _Views)

Methods

Add(String, OlViewType, OlViewSaveOption)

Creates a new view in the Views collection.

(Inherited from _Views)
GetEnumerator()

This member is inherited from the base type of the parent interface.

(Inherited from _Views)
Remove(Object)

Removes an object from the collection.

(Inherited from _Views)

Events

ViewAdd

Occurs when a view is added to the collection. Microsoft Outlook creates the new view and passes it to this event.

(Inherited from _ViewsEvents_Event)
ViewRemove

Occurs when a view has been removed from the specified collection.

(Inherited from _ViewsEvents_Event)

Applies to