ProfileBase Class
- Namespace:
- Weavy.Core.Models
- Assembly:
- Weavy.Core.dll
Base class for user profiles. Can be overridden to add custom profile data.
[Guid("6D20675B-15EC-4161-B76E-6CB1AD6015EE")]
[Plugin(Name = "Profile", Description = "Base class for user profiles, can be overridden to add custom profile data.")]
public class ProfileBase : Expando, IExtension, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ICloneable, IValidatableObject, ITaggable, IHasAvatar
- Inheritance:
- System.Object → Expando → ProfileBase
- Attributes:
- System.Runtime.InteropServices.GuidAttribute, PluginAttribute
- Implements:
- IExtension, IExpando, ITaggable, IHasAvatar
Constructors
Profile |
Initializes a new instance of the ProfileBase class. |
Properties
Avatar | Gets or sets the profile picture. |
Name | Gets or sets the full name (firstname lastname) of the ProfileBase. |
Tags | Gets or sets the list of tags for the profile. |
Methods
Get |
Gets an excerpt or summary suitable for display in lists and search results. |
IExpando.get_Item(string) | |
IExpando.set_Item(string, object) | |
Validate(Validation |
Performs custom validation. Subclasses can override this method to supply their own implementation. |
Extension Methods
Is |
Gets a value indicating if the specified value has the default value of the generic type. |
Serialize(object) | Serializes an object, or graph of connected objects, to a byte array. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |