Condividi tramite


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

Syntax

'Declaration
Public Sub SetCustomProperty ( _
    propertyName As String, _
    propertyValue As Object _
)
'Usage
Dim instance As SPField
Dim propertyName As String
Dim propertyValue As Object

instance.SetCustomProperty(propertyName, _
    propertyValue)
public void SetCustomProperty(
    string propertyName,
    Object propertyValue
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

propertyName is empty or null .

Remarks

This method sets the value for the specified property.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace