SolutionsModule.Session 属性 (Outlook)SolutionsModule.Session Property (Outlook)

返回当前会话的**NameSpace** 对象。Returns the NameSpace object for the current session. 只读。Read-only.


expressionexpression. Session

_表达式_代表SolutionsModule对象的变量。expression A variable that represents a 'SolutionsModule' object.


如果没有已登录的会话,则返回Null (Nothing Visual Basic 中)。Returns Null (Nothing in Visual Basic) if there is no logged-on session.

Session属性和**GetNamespace** 方法可用于交替获取当前会话的NameSpace对象。The Session property and the GetNamespace method can be used interchangeably to obtain the NameSpace object for the current session. 这两个成员可以实现同一目的。Both members serve the same purpose. 例如,下列语句执行相同的功能。For example, the following statements perform the same function.

Set objNamespace = Application.GetNamespace("MAPI") 
Set objSession = Application.Session

另请参阅See also

SolutionsModule 对象SolutionsModule Object