AdomdDataReader.IsDBNull 方法
傳回 Boolean,這個值表示資料行是否設為 null。
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
Public Function IsDBNull ( _
i As Integer _
) As Boolean
'用途
Dim instance As AdomdDataReader
Dim i As Integer
Dim returnValue As Boolean
returnValue = instance.IsDBNull(i)
public bool IsDBNull(
int i
)
public:
virtual bool IsDBNull(
int i
) sealed
abstract IsDBNull :
i:int -> bool
override IsDBNull :
i:int -> bool
public final function IsDBNull(
i : int
) : boolean
參數
- i
型別:Int32
要尋找的資料行之以零為基底序數位置。
傳回值
型別:Boolean
Boolean ,如果資料行設為 null,則其中包含 true,否則包含 false。
實作
IDataRecordIsDBNull(Int32)
備註
呼叫用於擷取資料行值的型別方法 (例如 GetByte、GetChar 等) 之前先呼叫此方法檢查 null 資料行值,以避免引發錯誤。