Click or drag to resize

ContentRelation Class

Represents a relation between two content-types. Used in the API, in gridviews and in choice fields, this relation allows the creation of PFItemRelation objects between items.
Inheritance Hierarchy

Namespace:  Packflow.Modeling
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public class ContentRelation : ModelingObject_Extended, 
	IModelRelationInfo, IModelInfo

The ContentRelation type exposes the following members.

Constructors
  NameDescription
Public methodContentRelation
Top
Properties
  NameDescription
Public propertyDescription
Gets or sets the description.
Public propertyGuid
Gets the GUID identifying this object.
(Inherited from ModelingObject.)
Public propertyId
Gets the id identifying this object.
(Inherited from ModelingObject.)
Public propertyInstanceGuid
Gets a guid, unique for this object instance.
(Inherited from ModelingObject.)
Public propertyInstanceLanguage
Gets or sets the instance language (two letters format).
(Inherited from ModelingObject.)
Public propertyIsExtended
Gets a value indicating whether this object is Extended (ModelingObject_Extended) or not, allowing to avoid an "is" verification.
(Inherited from ModelingObject_Extended.)
Public propertyMirroredRelation
Gets or sets a value indicating whether this relation is a mirror of a relation located in another model. That target relation should then be an external relation targeting a content-type in this local model. This relation in the target one should share the same guid, but not the same id.
Public propertyMirroredRelationModelGuid
Gets or sets the GUID of the model hosting the mirrored relation. Only relevant if the MirroredRelation property is True.
Public propertyModel
Gets the model hosting this object. The Model is the root object of the modeling tree.
(Overrides ModelingObjectModel.)
Public propertyName
Gets the name of this object.
(Inherited from ModelingObject.)
Public propertyOBSOLETE_Side1
Obsolete, still there for retro-compatibility.
Public propertyOBSOLETE_Side2
Obsolete, still there for retro-compatibility.
Public propertyOwnership
Gets or sets the ownership information.
Public propertyParent
Gets the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyParentType
Gets the type of the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyPartsInheritFromOwnerItemDeletePermissions
Gets or sets a value indicating whether parts inherit from their owner item delete permissions.
Public propertyPartsInheritFromOwnerItemReadPermissions
Gets or sets a value indicating whether parts inherit from their owner item read permissions.
Public propertyPartsInheritFromOwnerItemUpdatePermissions
Gets or sets a value indicating whether parts inherit from their owner item update permissions.
Public propertySide1
Gets or sets the first side of the relation.
Public propertySide1CustomName
Gets or sets the custom name for the first side.
Public propertySide2
Gets or sets the second side of the relation.
Public propertySide2CustomName
Gets or sets the custom name for the second side.
Public propertyType
Gets or sets the of relation, revealing multiplicities.
Top
Methods
  NameDescription
Public methodChildren
Returns all children objects.
(Inherited from ModelingObject.)
Public methodEnsureMirrored
Ensures this relation as an up-to-date mirrored relation of the specified one.
Public methodGetGuid
Gets the Guid.
(Inherited from ModelingObject.)
Public methodGetListItem
Gets a text representing this object using Id and Name.
(Inherited from ModelingObject.)
Public methodGetName
Gets the name.
(Inherited from ModelingObject.)
Public methodGetOtherContentType
Gets the content-type at the other end of the relation. Returns a local ContentType or a local ExternalContentType (always from the model of this relation).
Public methodGetOtherSide
Gets the other side of the relation.
Public methodGetParentParentType
Returns the first parent of a given type in the modeling tree. Returns null if not found.
(Inherited from ModelingObject.)
Public methodGetSide1ConstraintName
Gets the name of the first side constraint. WordForm data version control implementation.
Public methodGetSide1ContentTypeGuid
Gets the guid of the first content-type. WordForm data version control implementation.
Public methodGetSide2ConstraintName
Gets the name of the second side constraint. WordForm data version control implementation.
Public methodGetSide2ContentTypeGuid
Gets the guid of the second content-type. WordForm data version control implementation.
Public methodIsExternal
Determines whether one of the side is in another model.
Public methodIsMulti
Determines whether the specified content-type can hold multiple relations to the other side.
Public methodIsOtherSideMulti
Determines whether the opposite of the specified content-type can hold multiple relations to the other side.
Public methodIsOwnerOfOtherContentType
Determines whether the specified (local) content-type is owner of the other content-type.
Public methodIsPartOfOtherContentType
Determines whether the specified (local) content-type is part of the other content-type.
Public methodIsSecondary
Determines whether this relation links one or two local and secondary content-types.
Public methodLinkedToContentType
Determines if this relation is linked (on one side or another) to the specified content-type.
Public methodLinkedToContentTypes
Determines if this relation is linked (in a direction or the other) to the specified content-types.
Public methodLinkedToLinkedContentType
Determines if this relation is linked (on one side or another) to the specified content-type.
Public methodLinkedToLocalContentType
Determines if this relation is linked (on one side or another) to the specified content-type.
Public methodMultipleValuesFrom
Determines whether the specified content-type can hold multiple relations to the other side.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also