共用方式為


SPField.HasValue method

內部函數可用來驗證物件是否為 null。

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

Syntax

'宣告
Protected Friend Overridable Function HasValue ( _
    value As Object _
) As Boolean
'用途
Dim value As Object
Dim returnValue As Boolean

returnValue = Me.HasValue(value)
protected internal virtual bool HasValue(
    Object value
)

參數

傳回值

Type: System.Boolean
Boolean 等於true如果value不a null reference (Nothing in Visual Basic)。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace