Contact members

Represents data from the Contact Selector control.

The Contact type exposes the following members.

Properties

  Name Description
Public property DisplayName Gets the display name of a person or a group.
Public property EmailAddress Gets the e-mail address of a person or a group.
Public property IsCollection Indicates whether the Contact object represents a collection.
Public property IsSPUser Indicates whether a person is a user of Microsoft Windows SharePoint Services.
Public property LoginName Gets the logon name of a person or group.
Public property PrincipalID Gets the unique identifier for the principal object.
Public property PrincipalType Gets the type of principal object.
Public property Xml Gets the XML for the contact.

Top

Methods

  Name Description
Public method Equals(Object) (Inherited from Object.)
Public method Equals(Contact)
Public methodStatic member ExpandGroups(SPWeb, [], Int32, Boolean) Recursively expands any security groups, SharePoint groups, or distribution lists into individual users, given an array of Contact objects.
Protected method Finalize (Inherited from Object.)
Public methodStatic member FromDisplayNameAndEmailAddress(String, String) Gets a Contact object for a user, given the user's display name and e-mail address.
Public methodStatic member FromName(String, SPWeb) Gets a Contact object, given the name of a user.
Public methodStatic member FromPrincipal(SPPrincipal) Gets a Contact object for a given principal object.
Public methodStatic member FromPrincipalID(Int32, SPWeb) Gets a Contact object for a user or group, given the unique identifier of the principal.
Public methodStatic member FromPrincipalInfo(SPPrincipalInfo) Gets a Contact object, given the information about the principal.
Public methodStatic member FromSharePointUserString(String, SPWeb) Gets a Contact object, given a SharePoint user string.
Public method GetHashCode (Inherited from Object.)
Public method GetPrincipal(SPWeb) Gets the SPPrincipal object for the contact.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member PrincipalTypeIsSPUser(SPPrincipalType) Checks whether a principal is a user or a security group in Microsoft Windows SharePoint Services.
Public methodStatic member ToContacts(String, SPWeb) Parses contacts from a string of XML and creates an array of Contact objects from the hash table.
Public methodStatic member ToPersonXml(Contact)
Public method ToString() Returns a string that represents the current object. (Overrides Object.ToString().)

Top

See also

Reference

Contact class

Microsoft.Office.Workflow.Utility namespace