GetNameSpace Method

Applies To

Application object.

Description

Returns a NameSpace object of the specified type.

Syntax

expression.GetNameSpace(Type)

expression An expression that returns a Application object.

Type Required String. The type of name space to return.

Remarks

The only supported name space type is "MAPI."

Example

This example obtains the MAPI NameSpace object.

set myOlApp = CreateObject ("Outlook.Application")
Set olNameSpace = myOlApp.GetNameSpace("MAPI")