共用方式為


SPField.GetCustomProperty method

取得具有指定名稱的自訂屬性的值。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetCustomProperty ( _
    propertyName As String _
) As Object
'用途
Dim instance As SPField
Dim propertyName As String
Dim returnValue As Object

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

參數

傳回值

Type: System.Object
屬性的值。

Exceptions

Exception Condition
ArgumentNullException

propertyName是 null 或空白。

備註

此方法會取得與指定的屬性名稱的自訂屬性的值。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace