_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
<DispIdAttribute()> _
Function GetNamespace ( _
Type As String _
) As NameSpace
'Usage
Dim instance As _Application
Dim Type As String
Dim returnValue As NameSpace
returnValue = instance.GetNamespace(Type)
[DispIdAttribute()]
NameSpace GetNamespace(
string Type
)
Parameters
Type
Type: System.StringThe type of name space to return.
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
Microsoft.Office.Interop.Outlook Namespace