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
)
參數
propertyName
Type: System.String屬性名稱。
propertyValue
Type: System.Object此屬性值。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | propertyName是空的或 null 。 |
備註
此方法會將指定之屬性的值。