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
)
參數
value
Type: System.Object若要測試物件。
傳回值
Type: System.Boolean
Boolean 等於true如果value不a null reference (Nothing in Visual Basic)。