Share via


PropertyMapCollection Class

The PropertyMapCollection class represents a collection of PropertyMap objects. It stores all property mappings for the data source.

System.Object

   Microsoft.SharePoint.Portal.UserProfiles.PropertyMapCollection

Public Methods

The following table shows the public methods of the PropertyMapCollection class and a brief description of each.

Name Description
Add(String, String) Adds a PropertyMap object to the collection
CopyTo(System.Array, Int32) Copies the elements of the PropertyMap collection to an array, starting at a specified array index
GetEnumerator Gets the enumerator for the PropertyMap objects
Remove(String) Removes a PropertyMap object from the collection
VerifyMapping(Boolean) Verifies the existence of the mapping in the data source. The VerifyMapping method returns a list of invalid mapping

Public Properties

The following table shows the properties of the PropertyMapCollection class, the data type of each property, and a brief description of each.

Name Data Type Description
Count Int32 Gets the number of user profile property maps for the collection
DataSource Microsoft.SharePoint.Portal.UserProfiles.DataSource Gets the data source for the property map
IsSynchronized Boolean Gets a value indicating whether the property maps are synchronized
Item(String) Microsoft.SharePoint.Portal.UserProfiles.PropertyMap Gets the property map in the collection
SyncRoot object Gets an object that can be used to synchronize access to this collection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Example

The following code example shows the use of the PropertyMapCollection class.

Requirements

Namespace: Microsoft.SharePoint.Portal.UserProfiles

Platforms: Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security