_NameSpace _NameSpace _NameSpace Interface

Definition

This is a primary interface in a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this primary interface only when the method you want to use shares the same name as an event of the COM object; in this case, cast to this interface to call the method, and cast to the latest events interface to connect to the event. Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object. For information about the COM object, see NameSpace.

public interface class _NameSpace
[System.Runtime.InteropServices.Guid("00063002-0000-0000-C000-000000000046")]
public interface _NameSpace
Public Interface _NameSpace
Derived
Attributes

Properties

Accounts Accounts Accounts

Returns an Accounts collection object that represents all the Account objects in the current profile. Read-only.

AddressLists AddressLists AddressLists

Returns an AddressLists collection representing a collection of the address lists available for this session. Read-only.

Application Application Application

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

AutoDiscoverConnectionMode AutoDiscoverConnectionMode AutoDiscoverConnectionMode

Returns an OlAutoDiscoverConnectionMode constant that specifies the type of connection to the Exchange server for auto-discovery service. Read-only.

AutoDiscoverXml AutoDiscoverXml AutoDiscoverXml

Returns a String (string in C#) that represents information in XML retrieved from the auto-discovery service of an Exchange server. Read-only.

Categories Categories Categories

Returns or sets a Categories object that represents the set of Category objects available to the namespace. Read/write.

Class Class Class

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

CurrentProfileName CurrentProfileName CurrentProfileName

Returns a String (string in C#) representing the name of the current profile. Read-only.

CurrentUser CurrentUser CurrentUser

Returns the display name of the currently logged-on user as a Recipient object. Read-only.

DefaultStore DefaultStore DefaultStore

Returns a Store object representing the default Store for the profile. Read-only.

ExchangeConnectionMode ExchangeConnectionMode ExchangeConnectionMode

Returns an OlExchangeConnectionMode constant that indicates the current connection mode the user is using. Read-only.

ExchangeMailboxServerName ExchangeMailboxServerName ExchangeMailboxServerName

Returns a String (string in C#) value that represents the name of the Exchange server on which the active mailbox is hosted. Read-only.

ExchangeMailboxServerVersion ExchangeMailboxServerVersion ExchangeMailboxServerVersion

Returns a String (string in C#) value that represents the full version of the Exchange server on which the active mailbox is hosted. Read-only.

Folders Folders Folders

Returns the Folders collection that represents all the folders contained in the specified NameSpace. Read-only.

MAPIOBJECT MAPIOBJECT MAPIOBJECT

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

Offline Offline Offline

Returns a Boolean (bool in C#) indicating True if Outlook is offline (not connected to an Exchange server), and False if online (connected to an Exchange server). Read-only.

Parent Parent Parent

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

Session Session Session

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

Stores Stores Stores

Returns a Stores collection object that represents all the Store objects in the current profile. Read-only.

SyncObjects SyncObjects SyncObjects

Returns a SyncObjects collection containing all Send\Receive groups. Read-only.

Type Type Type

Returns a String (string in C#) indicating the type of the specified object. Read-only.

Methods

AddStore(Object) AddStore(Object) AddStore(Object)

Adds a Personal Folders (.pst) file to the current profile.

AddStoreEx(Object, OlStoreType) AddStoreEx(Object, OlStoreType) AddStoreEx(Object, OlStoreType)

Adds a Personal Folders file (.pst) in the specified format to the current profile.

CompareEntryIDs(String, String) CompareEntryIDs(String, String) CompareEntryIDs(String, String)

Returns a Boolean value (bool in C#) that indicates if two entry ID values refer to the same Outlook item.

CreateContactCard(AddressEntry) CreateContactCard(AddressEntry) CreateContactCard(AddressEntry)

Creates an instance of a ContactCard object for the contact that is specified by the AddressEntry parameter.

CreateRecipient(String) CreateRecipient(String) CreateRecipient(String)

Creates a Recipient object.

CreateSharingItem(Object, Object) CreateSharingItem(Object, Object) CreateSharingItem(Object, Object)

Creates a new SharingItem object.

Dial(Object) Dial(Object) Dial(Object)

Displays the New Call dialog box that allows users to dial the primary phone number of a specified contact.

GetAddressEntryFromID(String) GetAddressEntryFromID(String) GetAddressEntryFromID(String)

Returns an AddressEntry object that represents the address entry specified by ID.

GetDefaultFolder(OlDefaultFolders) GetDefaultFolder(OlDefaultFolders) GetDefaultFolder(OlDefaultFolders)

Returns a Folder object that represents the default folder of the requested type for the current profile; for example, obtains the default Calendar folder for the user who is currently logged on.

GetFolderFromID(String, Object) GetFolderFromID(String, Object) GetFolderFromID(String, Object)

Returns a Folder object identified by the specified entry ID (if valid).

GetGlobalAddressList() GetGlobalAddressList() GetGlobalAddressList()

Returns an AddressList object that represents the Exchange Global Address List.

GetItemFromID(String, Object) GetItemFromID(String, Object) GetItemFromID(String, Object)

Returns a Microsoft Outlook item identified by the specified entry ID (if valid).

GetRecipientFromID(String) GetRecipientFromID(String) GetRecipientFromID(String)

Returns a Recipient object identified by the specified entry ID (if valid).

GetSelectNamesDialog() GetSelectNamesDialog() GetSelectNamesDialog()

Obtains a SelectNamesDialog object for the current session.

GetSharedDefaultFolder(Recipient, OlDefaultFolders) GetSharedDefaultFolder(Recipient, OlDefaultFolders) GetSharedDefaultFolder(Recipient, OlDefaultFolders)

Returns a Folder object that represents the specified default folder for the specified user.

GetStoreFromID(String) GetStoreFromID(String) GetStoreFromID(String)

Returns a Store object that represents the store specified by ID.

Logoff() Logoff() Logoff()

Logs the user off from the current MAPI session.

Logon(Object, Object, Object, Object) Logon(Object, Object, Object, Object) Logon(Object, Object, Object, Object)

Logs the user on to MAPI, obtaining a MAPI session.

OpenSharedFolder(String, Object, Object, Object) OpenSharedFolder(String, Object, Object, Object) OpenSharedFolder(String, Object, Object, Object)

Opens a shared folder referenced through a URL or file name.

OpenSharedItem(String) OpenSharedItem(String) OpenSharedItem(String)

Opens a shared item from a specified path or URL.

PickFolder() PickFolder() PickFolder()

Displays the Pick Folder dialog box.

RefreshRemoteHeaders() RefreshRemoteHeaders() RefreshRemoteHeaders()

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

RemoveStore(MAPIFolder) RemoveStore(MAPIFolder) RemoveStore(MAPIFolder)

Removes a Personal Folders file (.pst) from the current MAPI profile or session.

SendAndReceive(Boolean) SendAndReceive(Boolean) SendAndReceive(Boolean)

Initiates immediate delivery of all undelivered messages submitted in the current session, and immediate receipt of mail for all accounts in the current profile.

Applies to