Share via


DataSource Class

The DataSource class represents a data source that a user profile will be imported from.

System.Object

   Microsoft.SharePoint.Portal.UserProfiles.DataSource

Public Methods

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

Name Description
Add(Microsoft.SharePoint.Portal.UserProfiles.DomainController) Adds a Microsoft Active Directory directory service domain controller from which to import
Commit Commits changes made to the data source to the user profile database
Remove(String) Removes a Microsoft Active Directory directory service domain controller from which to import
SetImportAccount(String, String) Sets the account for the import

Public Properties

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

Name Data Type Description
Description String Gets or sets the description of the data source from which to import user profiles
DomainControllers System.Collections.ICollection Gets the collection of all Microsoft Active Directory directory service domain controllers from which to import user profiles
IsIncremental Boolean Gets or sets a value indicating whether the user profile import is leveraging the directory service's incremental mechanism
Item(String) Microsoft.SharePoint.Portal.UserProfiles.DomainController Gets or sets the indexer for retrieving the domain controller defined within the data source for importing user profiles
ManagerFormatInAD Microsoft.SharePoint.Portal.UserProfiles.UserFormat Gets or sets the format of manager name in Active Directory directory service
PropertyMapping Microsoft.SharePoint.Portal.UserProfiles.PropertyMapCollection Gets or sets the property mapping information for the data source for importing user profiles
UserID String Gets the user ID used to access the data source used for downloading user profiles

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.

Remarks

If you make any changes to the DataSource object and call the Commit method, the import setting will be identified as Custom in the User Profile Administration user interface and the source of the user set in the Manage Profile Database page will show Custom.

Requirements

Namespace: Microsoft.SharePoint.Portal.UserProfiles

Platforms: Windows Server 2003

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

Security: Code Access Security