SPField.AnnotateField method
When overridden in a derived class, adds attributes to the specified XML node and assigns them values from the properties of this SPField object.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Sub AnnotateField ( _
fieldRefNode As XmlNode _
)
'Usage
Dim instance As SPField
Dim fieldRefNode As XmlNode
instance.AnnotateField(fieldRefNode)
public virtual void AnnotateField(
XmlNode fieldRefNode
)
Parameters
fieldRefNode
Type: System.Xml.XmlNodeThe node that the attributes are added to.
Remarks
Your override should call the base implementation and then add other attributes (and their values) as needed for your custom field type.