Contact Methods

Include Protected Members
Include Inherited Members

The Contact type exposes the following members.

Methods

  Name Description
Public method Equals(Object) (Inherited from Object.)
Public method Equals(Contact)
Public method Equals(Object) (Inherited from Object.)
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