[]
Checks whether a ContentObject of the specified type can be added to the current section.
public bool CanAdd(Type contentObjectType)
Public Function CanAdd(contentObjectType As Type) As Boolean
| Type | Name | Description |
|---|---|---|
| Type | contentObjectType | The type of the content object to add. |
| Type | Description |
|---|---|
| bool | true if a content object of the specified type can be added, false otherwise. |
Checks whether a ContentObject of the specified type can be added to the current section.
public bool CanAdd(Type contentObjectType, out Exception ex)
Public Function CanAdd(contentObjectType As Type, ByRef ex As Exception) As Boolean
| Type | Name | Description |
|---|---|---|
| Type | contentObjectType | The content object type to add. |
| Exception | ex | OUT: the exception that would be thrown if a content object of the specified type was added. |
| Type | Description |
|---|---|
| bool | true if a content object of the specified type can be added, false otherwise. |