Class ContentTypeBase
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Constants mapped to Base
Inheritance
Implements
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public sealed class ContentTypeBase : ValueType, IEquatable<ContentTypeBase>
Constructors
ContentTypeBase(String)
Initializes a new instance of the Content
Declaration
public ContentTypeBase(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string value of the content type base. |
Fields
Block
The base for Block content types.
Declaration
public static readonly ContentTypeBase Block
Field Value
Type | Description |
---|---|
Content |
Folder
The base for Folder content types.
Declaration
public static readonly ContentTypeBase Folder
Field Value
Type | Description |
---|---|
Content |
Image
The base for Image content types.
Declaration
public static readonly ContentTypeBase Image
Field Value
Type | Description |
---|---|
Content |
Media
The base for Media content types.
Declaration
public static readonly ContentTypeBase Media
Field Value
Type | Description |
---|---|
Content |
Page
The base for Page content types.
Declaration
public static readonly ContentTypeBase Page
Field Value
Type | Description |
---|---|
Content |
Undefined
Represents an undefined content type base.
Declaration
public static readonly ContentTypeBase Undefined
Field Value
Type | Description |
---|---|
Content |
Video
The base for Video content types.
Declaration
public static readonly ContentTypeBase Video
Field Value
Type | Description |
---|---|
Content |
Methods
Equals(ContentTypeBase)
Declaration
public bool Equals(ContentTypeBase other)
Parameters
Type | Name | Description |
---|---|---|
Content |
other |
Returns
Type | Description |
---|---|
System. |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Operators
Equality(ContentTypeBase, ContentTypeBase)
Determines if two Content
Declaration
public static bool operator ==(ContentTypeBase left, ContentTypeBase right)
Parameters
Type | Name | Description |
---|---|---|
Content |
left | The first Content |
Content |
right | The second Content |
Returns
Type | Description |
---|---|
System. |
True if |
Explicit(String to ContentTypeBase)
Converts a string to a Content
Declaration
public static explicit operator ContentTypeBase(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string value to convert. |
Returns
Type | Description |
---|---|
Content |
Inequality(ContentTypeBase, ContentTypeBase)
Determines if two Content
Declaration
public static bool operator !=(ContentTypeBase left, ContentTypeBase right)
Parameters
Type | Name | Description |
---|---|---|
Content |
left | The first Content |
Content |
right | The second Content |
Returns
Type | Description |
---|---|
System. |
True if |