Representing a name

A NotesName object allows you to represent a Notes® user or server name so that you can access the parts of the name as properties. Use the New method of NotesName or the CreateName method NotesSession to establish the object and specify the name. If the name is in the form of a hierarchical name, it is treated as a hierarchical name; otherwise, it is treated as a flat name.

The following table lists the NotesName properties.

Property

Data type

Description

Abbreviated

String

(Read-only) Abbreviated form of hierarchical name.

Addr821

String

(Read-only) Internet address in the format based on FRC821 Address Format Syntax.

Addr822Comment1

String

(Read-only) Comment1 component of Internet address in the format based on RFC 822 Address Format.

Addr822Comment2

String

(Read-only) Comment2 component of the Internet address is the format based on RFC 822 Address Format.

Addr822Comment3

String

(Read-only) Comment3 component of the Internet address is the format based on RFC 822 Address Format.

Addr822LocalPart

String

(Read-only) LocalPart component of Internet address in the format based on RFC 822 Address Format.

Addr822Phrase

String

(Read-only) Phrase component of Internet address in the format based on RFC 822 Address Format.

ADMD

String

(Read-only) Administration management domain name part of a name.

Canonical

String

(Read-only) Canonical form of a hierarchical name.

Common

String

(Read-only) Common name (CN=) component of a hierarchical name.

Country

String

(Read-only) Country or region (C=) component of a hierarchical name.

Generation

String

(Read-only) Generation part of a name, for example, "Jr."

Given

String

(Read-only) Given part of a name.

Initials

String

(Read-only) Initials part of a name.

IsHierarchical

Boolean

(Read-only) True if the name is hierarchical.

Keyword

String

(Read-only) Country\organization\organizational unit 1\organizational unit 2\organizational unit 3\organizational unit 4.

Language

String

(Read-only) The language code associated with a name. Returns null if the property is undefined.

Organization

String

(Read-only) Organization (O=) component of a hierarchical name.

OrgUnit1

String

(Read-only) First organizational unit (OU=) component of a hierarchical name.

OrgUnit2

String

(Read-only) Second organizational unit (OU=) component of a hierarchical name.

OrgUnit3

String

(Read-only) Third organizational unit (OU=) component of a hierarchical name.

OrgUnit4

String

(Read-only) Fourth organizational unit (OU=) component of a hierarchical name.

Parent

NotesSession

(Read-only) The session that contains a Name object. For COM only.

PRMD

String

(Read-only) Private management domain name part of a name.

Surname

String

(Read-only) Surname part of a name.