SPField.GetProperty Method

Gets the value of 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 Overridable Function GetProperty ( _
    propertyName As String _
) As String
'Usage
Dim instance As SPField
Dim propertyName As String
Dim returnValue As String

returnValue = instance.GetProperty(propertyName)
public virtual string GetProperty(
    string propertyName
)

Parameters

Return Value

Type: System.String
The property value.

Exceptions

Exception Condition
ArgumentNullException

propertyName is null or empty.

Remarks

This method optimizes access to commonly used field attributes and extends returning user-defined field attributes.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace