SPField.SetCustomProperty 方法

设置指定的属性的值。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
)

参数

异常

异常 条件
ArgumentNullException

propertyName为空或 null 。

备注

此方法设置指定的属性的值。

另请参阅

引用

SPField 类

SPField 成员

Microsoft.SharePoint 命名空间