|
|
RDONickNames collection
represents the list of nicknames from a particular profile.
Returned by:
RDOSession.GetNickNames
See also:
RDONickName
The example below enumerates
nicknames from the the current profile
|
'all nicknames from the
current profile
set Session = CreateObject("Redemption.RDOSession")
Session.Logon
set Nicknames = Session.GetNicknames
for each NickName in NickNames
Debug.Print NickName.Name & " - " & NickName.SmtpAddress
next |
The example below enumerates
nicknames from all profiles
|
'all nicknames in all profiles
set Session = CreateObject("Redemption.RDOSession")
for each ProfileName in Session.Profiles
Debug.Print("-----------------------------")
Debug.Print("--- " & ProfileName & " --- ")
Debug.Print("-----------------------------")
set NickNames = Session.GetNickNames(ProfileName)
for each NickName in NickNames
Debug.Print NickName.Name & " - " &
NickName.SmtpAddress
next
next |
The example below opens an .NK2 file
with the nicknames (it does not have to come from a local machine)
|
'nicknames in a file
set Session = CreateObject("Redemption.RDOSession")
set NickNames = Session.GetNickNames("C:\Documents and Settings\dmitry\Application
Data\Microsoft\Outlook\Outlook.NK2")
for each NickName in NickNames
Debug.Print NickName.Name & " - " & NickName.SmtpAddress
next |
The example reads nicknames from an
Exchange mailbox store .
|
'nicknames in a file
set Session = CreateObject("Redemption.RDOSession")
Session.LogonExchangeMailbox("user_name", "ServerName")
set Store = Session.GetSharedMailbox("Another_User")
set NickNames = Session.GetNickNames(Store)
for each NickName in NickNames
Debug.Print NickName.Name & " - " & NickName.SmtpAddress
next |
Properties
Methods
|
Derived from:
IDispatch
|
|
Properties |
|
|
Item(Index) |
Returns a nickname (RDONickName
object) with the given index.
Index - integer. And
index of the nick name, 1 through Count
|
set Session =
CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Nicknames = Session.GetNicknames
for i =1 to NickNames.Count
set Nickname = Nicknames.Item(i)
Debug.Print NickName.Name & " - " & NickName.SmtpAddress
next
|
|
Methods |
|
|
Count |
Integer, read-only. Number of
items in the collection.
|
see example above |
|
FileName |
String, read-only. The fully
qualified name of the NK2 file that stores the nicknames.
|
|
|
ProfileName |
String, read-only. The
profile name for which the nicknames are returned.
If
RDOSession.GetNickNames was called with an explicit file
name, this property will be empty.
|
|
|
|
|