Class MemberType
Represents the content type that a Member object is based on
Inheritance
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class MemberType : ContentTypeCompositionBase, IMemberType, IContentTypeComposition, IContentTypeBase, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceMemberType(Int32)
Declaration
public MemberType(int parentId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | parentId |
MemberType(IContentTypeComposition)
Declaration
public MemberType(IContentTypeComposition parent)
Parameters
Type | Name | Description |
---|---|---|
IContentTypeComposition | parent |
MemberType(IContentTypeComposition, String)
Declaration
public MemberType(IContentTypeComposition parent, string alias)
Parameters
Type | Name | Description |
---|---|---|
IContentTypeComposition | parent | |
System.String | alias |
Fields
View SourceSupportsPublishingConst
Declaration
public const bool SupportsPublishingConst = false
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
View SourceAlias
The Alias of the ContentType
Declaration
[DataMember]
public override string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SupportsPublishing
Gets a value indicating whether the content type supports publishing.
Declaration
public override bool SupportsPublishing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
A publishing content type supports draft and published values for properties. It is possible to retrieve either the draft (default) or published value of a property. Setting the value always sets the draft value, which then needs to be published.
A non-publishing content type only supports one value for properties. Getting the draft or published value of a property returns the same thing, and publishing a value property has no effect.
Variations
Declaration
public override ContentVariation Variations { get; set; }
Property Value
Type | Description |
---|---|
ContentVariation |
Methods
View SourceIsSensitiveProperty(String)
Gets a boolean indicating whether a Property is marked as storing sensitive values on the Members profile.
Declaration
public bool IsSensitiveProperty(string propertyTypeAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyTypeAlias | PropertyType Alias of the Property to check |
Returns
Type | Description |
---|---|
System.Boolean |
MemberCanEditProperty(String)
Gets a boolean indicating whether a Property is editable by the Member.
Declaration
public bool MemberCanEditProperty(string propertyTypeAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyTypeAlias | PropertyType Alias of the Property to check |
Returns
Type | Description |
---|---|
System.Boolean |
MemberCanViewProperty(String)
Gets a boolean indicating whether a Property is visible on the Members profile.
Declaration
public bool MemberCanViewProperty(string propertyTypeAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyTypeAlias | PropertyType Alias of the Property to check |
Returns
Type | Description |
---|---|
System.Boolean |
SetIsSensitiveProperty(String, Boolean)
Sets a boolean indicating whether a Property is a sensitive value on the Members profile.
Declaration
public void SetIsSensitiveProperty(string propertyTypeAlias, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyTypeAlias | PropertyType Alias of the Property to set |
System.Boolean | value | Boolean value, true or false |
SetMemberCanEditProperty(String, Boolean)
Sets a boolean indicating whether a Property is editable by the Member.
Declaration
public void SetMemberCanEditProperty(string propertyTypeAlias, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyTypeAlias | PropertyType Alias of the Property to set |
System.Boolean | value | Boolean value, true or false |
SetMemberCanViewProperty(String, Boolean)
Sets a boolean indicating whether a Property is visible on the Members profile.
Declaration
public void SetMemberCanViewProperty(string propertyTypeAlias, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyTypeAlias | PropertyType Alias of the Property to set |
System.Boolean | value | Boolean value, true or false |
ToSimple()
Gets an ISimpleContentType corresponding to this content type.
Declaration
public override ISimpleContentType ToSimple()
Returns
Type | Description |
---|---|
ISimpleContentType |