共用方式為


SPField.SetCustomProperty method

會設定指定之屬性的值。

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

Syntax

'宣告
Public Sub SetCustomProperty ( _
    propertyName As String, _
    propertyValue As Object _
)
'用途
Dim instance As SPField
Dim propertyName As String
Dim propertyValue As Object

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

參數

Exceptions

Exception Condition
ArgumentNullException

propertyName是空的或 null 。

備註

此方法會將指定之屬性的值。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace