Interface IMemberTypeService
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IMemberTypeService : IService
Methods
Delete(IEnumerable<IMemberType>, Int32)
Deletes a collection of IMemberType objects
Declaration
void Delete(IEnumerable<IMemberType> memberTypes, int userId = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IMemberType> | memberTypes | Collection of IMemberType to delete |
System.Int32 | userId | Optional Id of the User deleting the ContentTypes |
Remarks
Deleting a IMemberType will delete all the IContent objects based on this IMemberType
Delete(IMemberType, Int32)
Deletes a single IMemberType object
Declaration
void Delete(IMemberType memberType, int userId = 0)
Parameters
Type | Name | Description |
---|---|---|
IMemberType | memberType | IMemberType to delete |
System.Int32 | userId | Optional Id of the User deleting the ContentType |
Remarks
Deleting a IMemberType will delete all the IContent objects based on this IMemberType
Get(Guid)
Gets an IMemberType object by its Key
Declaration
IMemberType Get(Guid key)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | key | Key of the IMemberType to retrieve |
Returns
Type | Description |
---|---|
IMemberType | IMemberType |
Get(Int32)
Gets an IMemberType object by its Id
Declaration
IMemberType Get(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Id of the IMemberType to retrieve |
Returns
Type | Description |
---|---|
IMemberType | IMemberType |
Get(String)
Gets an IMemberType object by its Alias
Declaration
IMemberType Get(string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | Alias of the IMemberType to retrieve |
Returns
Type | Description |
---|---|
IMemberType | IMemberType |
GetAll(Int32[])
Gets a list of all available IContentType objects
Declaration
IEnumerable<IMemberType> GetAll(params int[] ids)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | ids | Optional list of ids |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IMemberType> | An Enumerable list of IContentType objects |
Save(IEnumerable<IMemberType>, Int32)
Saves a collection of IMemberType objects
Declaration
void Save(IEnumerable<IMemberType> memberTypes, int userId = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IMemberType> | memberTypes | Collection of IMemberType to save |
System.Int32 | userId | Optional Id of the User saving the ContentTypes |
Save(IMemberType, Int32)
Saves a single IMemberType object
Declaration
void Save(IMemberType memberType, int userId = 0)
Parameters
Type | Name | Description |
---|---|---|
IMemberType | memberType | IMemberType to save |
System.Int32 | userId | Optional Id of the User saving the ContentType |