Partager via


ContactManager Members

Include Protected Members
Include Inherited Members

The contact manager class is used to add, remove, and update contacts and their properties. The contact manager is also used to access Lync contact list groups.

The ContactManager type exposes the following members.

Properties

  Name Description
Public property Groups Returns the group collection.

Top

Methods

  Name Description
Public method BeginAddGroup(String, AsyncCallback, Object) Adds a new custom group to the group list.
Public method BeginAddGroup(DistributionGroup, AsyncCallback, Object) Adds a new custom group to the group list.
Public method BeginLookup Looks up a contact or a distribution group by entryid, sip address, email address, display name, etc..
Public method BeginRemoveContactFromAllGroups Removes a contact from all groups except distribution groups.
Public method BeginRemoveGroup Removes a group from the group list.
Public method BeginSearch(String, AsyncCallback, Object) Begins to search for contacts or distribution groups matching a specified search string. Results of the search are returned in the System.AsyncCallback you pass in the contactsAndGroupsCallback argument.
Public method BeginSearch(String, SearchProviders, SearchFields, SearchOptions, UInt32, AsyncCallback, Object) Begins to search for contacts or distribution groups matching a specified search string. Results of the search are returned in the System.AsyncCallback you pass in the contactsAndGroupsCallback argument.
Public method CreateObjRef (inherited from MarshalByRefObject)
Public method CreateSubscription Createss a Subscription object that can be used for batching subscriptions or queries.
Public method EndAddGroup Blocks calling thread until BeginAddGroup completes.
Public method EndLookup Blocks calling thread until BeginLookup completes. Returns an object representing the looked up contact or group.
Public method EndRemoveContactFromAllGroups Blocks calling thread until BeginRemoveContactFromAllGroups completes.
Public method EndRemoveGroup Blocks calling thread until BeginRemoveGroup completes.
Public method EndSearch Blocks calling thread until BeginSearch completes. Returns the search results as an instance of SearchResults.
Public method Equals (inherited from Object)
Protected method Finalize (Overrides UCWFullFinalize().)
Public method GetContactByUri Finds or creates a new contact using the contact URI. The URI can be a SIP address or a phone number.
Public method GetExpertSearchQueryString Gets the search query string used for expert search.
Public method GetHashCode (inherited from Object)
Public method GetLifetimeService (inherited from MarshalByRefObject)
Public method GetSearchFields Gets the supported search fields.
Public method GetSearchProviderID Gets the ID of a search provider.
Public method GetSearchProviderStatus Gets the search provider status.
Public method GetType (inherited from Object)
Public method InitializeLifetimeService (inherited from MarshalByRefObject)
Protected method MemberwiseClone() (inherited from Object)
Protected method MemberwiseClone(Boolean) (inherited from MarshalByRefObject)
Public method ToString (inherited from Object)

Top

Events

  Name Description
Public event GroupAdded Occurs when a group is added to the Groups collection.
Public event GroupRemoved Occurs when a group is removed.
Public event SearchProviderStateChanged Occurs when the status of a search provider changes.

Top

See Also

Reference

ContactManager Class

Microsoft.Lync.Model Namespace