Applies to Umbraco 7.1 and 6.2 and newer
The MemberTypeService acts as a "gateway" to Umbraco data for operations which are related to MemberTypes.
Browse the API documentation for MemberTypeService.
- Namespace:
Umbraco.Core.Services - Assembly:
Umbraco.Core.dll
All samples in this document will require references to the following dll:
- Umbraco.Core.dll
All samples in this document will require the following usings:
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
Please note that this page will be updated with samples and additional information about the methods listed below
The MemberTypeService is available through the ApplicationContext, but the if you are using a SurfaceController or the UmbracoUserControl then the MemberTypeService is available through a local Services property.
Services.MemberTypeService
Getting the service through the ApplicationContext:
ApplicationContext.Current.Services.MemberTypeService
Deletes a MemberType
Returns a MemberType with a given alias
Returns a collection of MemberType with the given ids
Saves a MemberType