_Application.GetNamespace Method

Returns a NameSpace object of the specified type.

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


<DispIdAttribute()> _
Function GetNamespace ( _
    Type As String _
) As NameSpace
Dim instance As _Application
Dim Type As String
Dim returnValue As NameSpace

returnValue = instance.GetNamespace(Type)
NameSpace GetNamespace(
    string Type


Return Value

Type: Microsoft.Office.Interop.Outlook.NameSpace
A NameSpace object that represents the specified namespace.


The only supported name space type is "MAPI". The GetNameSpace method is functionally equivalent to the Session property, which was introduced in Microsoft Outlook 98.

See Also


_Application Interface

_Application Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get and Log On to an Instance of Outlook