Class RelationTypeExtensions
Provides extension methods for IRelationType.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class RelationTypeExtensions
Methods
View SourceIsDeletableRelationType(IRelationType)
Determines whether the relation type can be deleted.
Declaration
public static bool IsDeletableRelationType(this IRelationType relationType)
Parameters
| Type | Name | Description |
|---|---|---|
| IRelationType | relationType | The relation type to check. |
Returns
| Type | Description |
|---|---|
| bool |
|
Remarks
System relation types cannot be deleted.
IsSystemRelationType(IRelationType)
Determines whether the relation type is a built-in system relation type.
Declaration
public static bool IsSystemRelationType(this IRelationType relationType)
Parameters
| Type | Name | Description |
|---|---|---|
| IRelationType | relationType | The relation type to check. |
Returns
| Type | Description |
|---|---|
| bool |
|