Try our conversational search powered by Generative AI!

Struct 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

Implements
System.IEquatable<ContentTypeBase>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public struct ContentTypeBase : IEquatable<ContentTypeBase>

Constructors

ContentTypeBase(String)

Initializes a new instance of the ContentTypeBase structure.

Declaration
public ContentTypeBase(string value)
Parameters
Type Name Description
System.String 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
ContentTypeBase

Folder

The base for Folder content types.

Declaration
public static readonly ContentTypeBase Folder
Field Value
Type Description
ContentTypeBase

Image

The base for Image content types.

Declaration
public static readonly ContentTypeBase Image
Field Value
Type Description
ContentTypeBase

Media

The base for Media content types.

Declaration
public static readonly ContentTypeBase Media
Field Value
Type Description
ContentTypeBase

Page

The base for Page content types.

Declaration
public static readonly ContentTypeBase Page
Field Value
Type Description
ContentTypeBase

Undefined

Represents an undefined content type base.

Declaration
public static readonly ContentTypeBase Undefined
Field Value
Type Description
ContentTypeBase

Video

The base for Video content types.

Declaration
public static readonly ContentTypeBase Video
Field Value
Type Description
ContentTypeBase

Methods

Equals(ContentTypeBase)

Declaration
public bool Equals(ContentTypeBase other)
Parameters
Type Name Description
ContentTypeBase other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

Operators

Equality(ContentTypeBase, ContentTypeBase)

Determines if two ContentTypeBase values are the same.

Declaration
public static bool operator ==(ContentTypeBase left, ContentTypeBase right)
Parameters
Type Name Description
ContentTypeBase left

The first ContentTypeBase to compare.

ContentTypeBase right

The second ContentTypeBase to compare.

Returns
Type Description
System.Boolean

True if left and right are the same; otherwise, false.

Explicit(String to ContentTypeBase)

Converts a string to a ContentTypeBase.

Declaration
public static explicit operator ContentTypeBase(string value)
Parameters
Type Name Description
System.String value

The string value to convert.

Returns
Type Description
ContentTypeBase

Inequality(ContentTypeBase, ContentTypeBase)

Determines if two ContentTypeBase values are different.

Declaration
public static bool operator !=(ContentTypeBase left, ContentTypeBase right)
Parameters
Type Name Description
ContentTypeBase left

The first ContentTypeBase to compare.

ContentTypeBase right

The second ContentTypeBase to compare.

Returns
Type Description
System.Boolean

True if left and right are different; otherwise, false.

Implements

System.IEquatable<T>

Extension Methods