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)

'Declaration
PublicSubSetCustomProperty ( _
	propertyNameAsString, _
	propertyValueAsObject _
)
'Usage
DiminstanceAsSPFieldDimpropertyNameAsStringDimpropertyValueAsObject

instance.SetCustomProperty(propertyName, _
	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:
© 2014 Microsoft