Custom |
Validates the custom field properties.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

public string ValidateCustomFieldProperties(
ICustomFieldProperties customFieldProperties
)
Parameters
- customFieldProperties ICustomFieldProperties
- An instance of ICustomFieldProperties which represents the properties of this field.
Return Value
StringIf the properties are valid, an empty string will be returned. If the properties are not valid, a non-empty string which describes the error will be returned.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Can't validate the properties of a CustomFieldData of a SchedulableField (which is not added to a schedule). |
