Class MemberInfoProvider
- Namespace
- CMS.Membership
- Assembly
- CMS.Membership.dll
Class providing MemberInfo management.
[ProviderInterface(typeof(IMemberInfoProvider))]
public class MemberInfoProvider : AbstractInfoProvider<MemberInfo, MemberInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<MemberInfo>, IInfoByNameProvider<MemberInfo>, IBulkInfoProvider<MemberInfo>, IMemberInfoProvider, IInfoProvider<MemberInfo>, IInfoByIdProvider<MemberInfo>, IInfoByGuidProvider<MemberInfo>
- Inheritance
-
objectMemberInfoProvider
- Implements
- Inherited Members
-
AbstractInfoProvider<MemberInfo, MemberInfoProvider, ObjectQuery<MemberInfo>>.GetInfoById(int, bool)AbstractInfoProvider<MemberInfo, MemberInfoProvider, ObjectQuery<MemberInfo>>.DeleteInfo(MemberInfo)
- Extension Methods
Constructors
MemberInfoProvider()
Initializes a new instance of the MemberInfoProvider class.
public MemberInfoProvider()
Methods
Set(MemberInfo)
Inserts or updates the info
object in the underlying data store.
public override void Set(MemberInfo info)
Parameters
info
MemberInfoInfo object to be inserted or updated.
Exceptions
- ArgumentNullException
Thrown when
info
is null.
Validate(MemberInfo)
Validates whether the info
object's state satisfies domain specific constraints and returns the validation result.
public override InfoValidationResult Validate(MemberInfo info)
Parameters
info
MemberInfoInfo object to be validated.
Returns
- InfoValidationResult
Returns validation result with IsValid set to true, if
info
is valid. Otherwise returns result with the flag set to false and a corresponding error message.
Remarks
Implement IInfoValidator<TInfo> and register it into the system to perform domain specific validation for MemberInfo. The system invokes the registered validators as part of validation performed by this method.
The default implementation validates the code name to contain only allowed characters and to be unique.
Exceptions
- ArgumentNullException
Thrown when
info
is null.
- See Also
-
IInfoValidator<TInfo>