Partilhar via


SPContentTypeId Members

Include Protected Members
Include Inherited Members

Represents the identifier (ID) of a content type.

The SPContentTypeId type exposes the following members.

Constructors

  Name Description
Public method SPContentTypeId Initializes a new instance of the SPContentTypeId type using a specified hexadecimal string.

Top

Properties

  Name Description
Public propertyStatic member Empty Gets an empty content type identifier (ID).
Public property Parent Gets the content type identifier (ID) that the current content type ID is a direct descendant of.

Top

Methods

  Name Description
Public methodStatic member BestMatch Searches a collection of content type identifiers (IDs) and returns the content type ID that most closely matches the specified content type ID.
Public method CompareTo Compares the current content type identifier (ID) with another content type ID.
Public method Equals Determines whether the current SPContentTypeId object is equal to another object (possibly of unknown type). (Overrides ValueType.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public methodStatic member FindCommonParent Gets the content type identifier (ID) of the common parent of two content type ID values.
Public method GetHashCode Returns a hash code for the current content type identifier (ID). (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method IsChildOf Indicates whether the specified content type identifier (ID) is a descendant of the current content type ID.
Public method IsParentOf Indicates whether the current content type identifier (ID) is a parent of the specified content type ID.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string of hexadecimal characters that represents the content type identifier (ID). (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Indicates whether two specified content type identifiers (IDs) are equal.
Public operatorStatic member GreaterThan Indicates whether the first content type identifier (ID) is greater than the second content type ID.
Public operatorStatic member GreaterThanOrEqual Indicates whether the first content type identifier (ID) is greater than or equal to the second content type ID.
Public operatorStatic member Inequality Indicates whether the two specified content type identifiers (IDs) are not equal.
Public operatorStatic member LessThan Indicates whether the first content type identifier (ID) is less than the second content type ID.
Public operatorStatic member LessThanOrEqual Indicates whether the first content type identifier (ID) is less than or equal to the second content type ID.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IComparable.CompareTo Compares the current instance with another object of the same type.

Top

See Also

Reference

SPContentTypeId Structure

Microsoft.SharePoint Namespace