Condividi tramite


SPField.GetCustomProperty Method

Gets the value of custom property with the specified name.

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

Syntax

'Declaration
Public Function GetCustomProperty ( _
    propertyName As String _
) As Object
'Usage
Dim instance As SPField
Dim propertyName As String
Dim returnValue As Object

returnValue = instance.GetCustomProperty(propertyName)
public Object GetCustomProperty(
    string propertyName
)

Parameters

Return Value

Type: System.Object
The value of the property.

Exceptions

Exception Condition
ArgumentNullException

propertyName is null or empty.

Remarks

This method gets the value of a custom property with the specified property name.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace