Share

CustomFieldData.ValidateCustomFieldProperties Method

Validates the custom field properties.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public string ValidateCustomFieldProperties(
	ICustomFieldProperties customFieldProperties
)

Parameters

customFieldProperties  ICustomFieldProperties
An instance of ICustomFieldProperties which represents the properties of this field.

Return Value

String
If 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.

Exceptions

ExceptionCondition
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).

See Also

Reference

Was this information helpful?