_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)

Syntax

'Declaration
Function GetNamespace ( _
    Type As String _
) As NameSpace
'Usage
Dim instance As _Application
Dim Type As String
Dim returnValue As NameSpace

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

Parameters

Return Value

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

Remarks

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

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Outlook Namespace