Partager via


Views Interface

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<CoClassAttribute(GetType(ViewsClass))> _
<GuidAttribute("0006308D-0000-0000-C000-000000000046")> _
Public Interface Views _
    Inherits _Views, _ViewsEvents_Event
'Usage
Dim instance As Views
[CoClassAttribute(typeof(ViewsClass))]
[GuidAttribute("0006308D-0000-0000-C000-000000000046")]
public interface Views : _Views, _ViewsEvents_Event

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 method of the views collection to add a new view to the collection.

Use the Remove method to remove a view from the collection.

See Also

Reference

Views Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a View