DataReaderExtensions.IsDBNull(DbDataReader, String) 메서드

정의

존재하지 않거나 누락된 값이 열에 포함되었는지 여부를 나타내는 값을 가져옵니다.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDBNull(System::Data::Common::DbDataReader ^ reader, System::String ^ name);
public static bool IsDBNull (this System.Data.Common.DbDataReader reader, string name);
static member IsDBNull : System.Data.Common.DbDataReader * string -> bool
<Extension()>
Public Function IsDBNull (reader As DbDataReader, name As String) As Boolean

매개 변수

reader
DbDataReader

열 값을 가져올 데이터 판독기입니다.

name
String

열 이름입니다.

반환

지정된 열이 DBNull에 해당하면 true이고, 그렇지 않으면 false입니다.

예외

지정된 이름이 올바른 열 이름이 아닌 경우

설명

예외를 throw하지 않도록 형식화된 Get_*_ 메서드(예: GetByte, GetChar등)를 호출하기 전에 null 열 값에 대해 검사 이 메서드를 호출합니다.

적용 대상

추가 정보