Share via


SqlCeDataReader.GetName 메서드

지정된 열의 이름을 가져옵니다.

네임스페이스:  System.Data.SqlServerCe
어셈블리:  System.Data.SqlServerCe(System.Data.SqlServerCe.dll)

구문

‘선언
Public Overrides Function GetName ( _
    index As Integer _
) As String
‘사용 방법
Dim instance As SqlCeDataReader
Dim index As Integer
Dim returnValue As String

returnValue = instance.GetName(index)
public override string GetName(
    int index
)
public:
virtual String^ GetName(
    int index
) override
abstract GetName : 
        index:int -> string 
override GetName : 
        index:int -> string 
public override function GetName(
    index : int
) : String

매개 변수

  • index
    유형: System.Int32
    0부터 시작하는 열 서수입니다.

반환 값

유형: System.String
지정된 열의 이름입니다.

구현

IDataRecord.GetName(Int32)

예외

예외 조건
InvalidOperationException

작업이 유효하지 않은 경우. SqlCeDataReader는 결과 집합의 마지막 행 뒤에 올 수 있습니다.

참고 항목

참조

SqlCeDataReader 클래스

System.Data.SqlServerCe 네임스페이스

GetOrdinal