Class DnnUserProfile
Get DNN user profiles as IEntity objects of one or many users.
Inheritance
DnnUserProfile
Implements
Inherited Members
Namespace: ToSic.Sxc.Dnn.DataSources
Assembly: ToSic.Sxc.Dnn.Core.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
[VisualQuery(NiceName = "Dnn User Profiles", UiHint = "Users profiles of specified users in Dnn", Icon = "face", Type = DataSourceType.Source, NameId = "ToSic.Sxc.Dnn.DataSources.DnnUserProfile, ToSic.Sxc.Dnn", ConfigurationType = "|Config ToSic.SexyContent.DataSources.DnnUserProfileDataSource", NameIds = new string[] { "ToSic.SexyContent.Environment.Dnn7.DataSources.DnnUserProfileDataSource, ToSic.SexyContent" })]
public class DnnUserProfile : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Constructors
| Improve this Doc View SourceDnnUserProfile(MyServices, IDataFactory)
Declaration
public DnnUserProfile(DnnUserProfile.MyServices services, IDataFactory dataFactory)
Parameters
Type | Name | Description |
---|---|---|
DnnUserProfile.MyServices | services | |
IDataFactory | dataFactory |
Properties
| Improve this Doc View SourceContentType
Gets or sets the Name of the ContentType to simulate
Declaration
[Configuration(Field = "ContentTypeName", Fallback = "UserProfile")]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string |
Properties
List of profile-properties to retrieve, comma-separated
Declaration
[Configuration(Fallback = "DisplayName,Email,FirstName,LastName,Username")]
public string Properties { get; set; }
Property Value
Type | Description |
---|---|
string |
TitleField
Gets or sets the Name of the Title Attribute of the DNN-UserInfo
Declaration
[Configuration(Field = "TitleFieldName", Fallback = "DisplayName")]
public string TitleField { get; set; }
Property Value
Type | Description |
---|---|
string |
UserIds
The user id list of users to retrieve, comma-separated
Declaration
[Configuration]
public string UserIds { get; set; }
Property Value
Type | Description |
---|---|
string |