DevMSN+

酷酷的MSN插件,随心所欲MSN

Messenger Plus! Live - Scripting Documentation

Objects Reference - Contacts

Contacts' Iterator

The Contacts object can be iterated through the Enumerator object of JScript.

溴>


Messenger Plus! Live -脚本文件



物体的参考-接触
联系人迭代


接触的对象可以通过迭代

Enumerator对象的JScript 。

接触的对象可以通过迭代

Enumerator对象的JScript 。

Return Value

A Contact object.

一个联络对象。

一个联络对象。

The iterator typically fails for the following reason:

该迭代通常失败,原因如下:

该迭代通常失败,原因如下:

  • The Contacts object was generated by a different active user than the one currently signed-in (when the object refers to the entire user's contact list).

Remarks

Each Contacts object keeps track of its own iterator. This means that even if two objects refer to the same collection of contacts, they'll contain two different iterators. This is why Contacts objects must first be assigned to variables before being used in an Enumerator.

每一个接触的对象会持续追踪其自身的迭代。这个
也就是说,即使两个物体指同一收集的接触,他们就会
包含两种不同的迭代器。这就是为什么接触的物体必须先
分配给变量,然后将被用来在一枚举。

每一个接触的对象会持续追踪其自身的迭代。这个
也就是说,即使两个物体指同一收集的接触,他们就会
包含两种不同的迭代器。这就是为什么接触的物体必须先
分配给变量,然后将被用来在一枚举。

Example

The current user must be signed for this code to succeed.

当前用户必须签署此代码的图谋得逞。

Debug.Trace("Contacts in the user's contact list:");
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
	var Contact = e.item();
	Debug.Trace(" " + Contact.Email);
}

Function Information

ObjectContacts
AvailabilityMessenger Plus! Live 4.00

See Also

Contacts Object, Contact Object, JScript's Enumerator Object.

接触的对象,
联系对象,

JScript中的Enumerator对象。

  Sponsor

  Links

Scripts文档目录 脚本库 FAQ
copyright devmsn.com