NameSpace 对象 (Outlook)NameSpace object (Outlook)

代表任何数据源的抽象根对象。Represents an abstract root object for any data source.

说明Remarks

对象本身提供登录和注销方法,通过标识符直接访问存储对象,直接访问某些特殊文件夹,并可访问其他用户拥有的数据源。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.

使用**GetNameSpace** ("MAPI") 从**Application** 对象返回 Outlook NameSpace对象。Use GetNameSpace ("MAPI") to return the Outlook NameSpace object from the Application object.

支持的唯一数据源是 MAPI,允许访问存储在用户的邮件存储区中的所有 Outlook 数据。The only data source supported is MAPI, which allows access to all Outlook data stored in the user's mail stores.

事件Events

名称Name
AutoDiscoverCompleteAutoDiscoverComplete
OptionsPagesAddOptionsPagesAdd

方法Methods

名称Name
AddStoreAddStore
AddStoreExAddStoreEx
CompareEntryIDsCompareEntryIDs
CreateContactCardCreateContactCard
CreateRecipientCreateRecipient
CreateSharingItemCreateSharingItem
拨号Dial
GetAddressEntryFromIDGetAddressEntryFromID
GetDefaultFolderGetDefaultFolder
GetFolderFromIDGetFolderFromID
GetGlobalAddressListGetGlobalAddressList
GetItemFromIDGetItemFromID
GetRecipientFromIDGetRecipientFromID
GetSelectNamesDialogGetSelectNamesDialog
GetSharedDefaultFolderGetSharedDefaultFolder
GetStoreFromIDGetStoreFromID
注销Logoff
登录Logon
OpenSharedFolderOpenSharedFolder
OpenSharedItemOpenSharedItem
PickFolderPickFolder
RemoveStoreRemoveStore
SendAndReceiveSendAndReceive

属性Properties

名称Name
AccountsAccounts
AddressListsAddressLists
应用程序Application
AutoDiscoverConnectionModeAutoDiscoverConnectionMode
AutoDiscoverXmlAutoDiscoverXml
类别Categories
Class
CurrentProfileNameCurrentProfileName
CurrentUserCurrentUser
DefaultStoreDefaultStore
ExchangeConnectionModeExchangeConnectionMode
ExchangeMailboxServerNameExchangeMailboxServerName
ExchangeMailboxServerVersionExchangeMailboxServerVersion
文件夹Folders
OfflineOffline
ParentParent
SessionSession
存储Stores
SyncObjectsSyncObjects
TypeType

另请参阅See also

命名空间对象成员 如何: 获取和登录到 outlook outlook 对象模型引用的实例NameSpace Object Members How to: Obtain and Log On to an Instance of Outlook Outlook Object Model Reference

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.