Here is a sample code
public void GetMyVcard()
{
VcardIq viq = new VcardIq(IqType.get);
xmppCon.IqGrabber.SendIq(viq, new IqCB(VcardResult), null);
}
private void VcardResult(object sender, IQ iq, object data)
{
if (iq.Type == IqType.result)
{
Vcard vcard = iq.Vcard;
if (vcard != null)
{
string fullname = vcard.Fullname;
string nickname = vcard.Nickname;
string description = vcard.Description;
Photo photo = vcard.Photo;
}
}
}