Class ProfilePropertyDefinition
The ProfilePropertyDefinition class provides a Business Layer entity for property Definitions.
Inherited Members
Namespace: DotNetNuke.Entities.Profile
Assembly: DotNetNuke.dll
Syntax
public class ProfilePropertyDefinition : BaseEntityInfo
Constructors
| Improve this Doc View SourceProfilePropertyDefinition()
Initializes a new instance of the ProfilePropertyDefinition class.
Declaration
public ProfilePropertyDefinition()
ProfilePropertyDefinition(Int32)
Initializes a new instance of the ProfilePropertyDefinition class.
Declaration
public ProfilePropertyDefinition(int portalId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | portalId |
Properties
| Improve this Doc View SourceDataType
Gets or sets the Data Type of the Profile Property.
Declaration
public int DataType { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultValue
Gets or sets the Default Value of the Profile Property.
Declaration
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DefaultVisibility
Gets or sets and sets the Default Visibility of the Profile Property.
Declaration
public UserVisibilityMode DefaultVisibility { get; set; }
Property Value
Type | Description |
---|---|
UserVisibilityMode |
Deleted
Gets or sets a value indicating whether gets and sets the Deleted.
Declaration
public bool Deleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDirty
Gets a value indicating whether the Definition has been modified since it has been retrieved.
Declaration
public bool IsDirty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Length
Gets or sets the Length of the Profile Property.
Declaration
public int Length { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ModuleDefId
Gets or sets the ModuleDefId.
Declaration
public int ModuleDefId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PortalId
Gets or sets the PortalId.
Declaration
public int PortalId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ProfileVisibility
Gets or sets whether the property is visible.
Declaration
public ProfileVisibility ProfileVisibility { get; set; }
Property Value
Type | Description |
---|---|
ProfileVisibility |
PropertyCategory
Gets or sets the Category of the Profile Property.
Declaration
public string PropertyCategory { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyDefinitionId
Gets or sets the Id of the ProfilePropertyDefinition.
Declaration
public int PropertyDefinitionId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PropertyName
Gets or sets the Name of the Profile Property.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyValue
Gets or sets the Value of the Profile Property.
Declaration
public string PropertyValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReadOnly
Gets or sets a value indicating whether the property is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Required
Gets or sets a value indicating whether the property is required.
Declaration
public bool Required { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ValidationExpression
Gets or sets a Validation Expression (RegEx) for the Profile Property.
Declaration
public string ValidationExpression { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ViewOrder
Gets or sets the View Order of the Property.
Declaration
public int ViewOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Visibility
The ProfilePropertyDefinition class provides a Business Layer entity for property Definitions.
Declaration
public UserVisibilityMode Visibility { get; set; }
Property Value
Type | Description |
---|---|
UserVisibilityMode |
Visible
Gets or sets a value indicating whether the property is visible.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClearIsDirty()
Clears the IsDirty Flag.
Declaration
public void ClearIsDirty()
Clone()
Clone a ProfilePropertyDefinition.
Declaration
public ProfilePropertyDefinition Clone()
Returns
Type | Description |
---|---|
ProfilePropertyDefinition | A ProfilePropertyDefinition. |