View.IsValidViewTemplate
Method
Description:
Verifies that the view represented by templateId can be set as the controlling view template for this view.
Verifies that the view represented by templateId can be set as the controlling view template for this view.
Parameters
| Parameter | Type | Description |
|---|---|---|
| templateId | ElementId | The id to be validated as a view template for this view. |
Return Value
| Type | Description |
|---|---|
| Boolean | True if the view is valid for us as a view template and compatible with this view, or if it is InvalidElementId, false otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |