Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NameSpace Interface
Collapse the table of content
Expand the table of content

NameSpace Interface

Represents an abstract root object for any data source.

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

[CoClassAttribute(typeof(NameSpaceClass))]
[GuidAttribute("00063002-0000-0000-C000-000000000046")]
public interface NameSpace : _NameSpace, 
	NameSpaceEvents_Event

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 _NameSpace. For information about the event members of the COM object, see NameSpaceEvents_Event.

The object itself provides methods for logging in and out, accessing storage objects directly by ID, accessing certain special default folders directly, and accessing data sources owned by other users.

Use GetNamespace ("MAPI") to return the Outlook NameSpace object from the Application object.

The only data source supported is MAPI, which allows access to all Outlook data stored in the user's mail stores.

Show:
© 2015 Microsoft