FormRegion Session 屬性(Outlook)FormRegion.Session property (Outlook)

會傳回目前會話的**NameSpace** 物件。Returns the NameSpace object for the current session. 唯讀。Read-only.



_運算式_代表FormRegion物件的變數。expression A variable that represents a FormRegion object.


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

FormRegion 物件FormRegion Object

支援和意見反應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.