Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPField.SetCustomProperty Method

Sets a value for the specified property.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public void SetCustomProperty(
	string propertyName,
	Object propertyValue
)

Parameters

propertyName
Type: System.String

The property name.

propertyValue
Type: System.Object

The property value.

ExceptionCondition
ArgumentNullException

propertyName is empty or null .

This method sets the value for the specified property.

Show:
© 2015 Microsoft