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
)
参数
propertyName
类型:System.String属性名称中。
propertyValue
类型:System.Object该属性值。
异常
异常 | 条件 |
---|---|
ArgumentNullException | propertyName为空或 null 。 |
备注
此方法设置指定的属性的值。