DbCommand.CommandText 속성

정의

데이터 소스에 대해 실행할 텍스트 명령을 가져오거나 설정합니다.

public:
 abstract property System::String ^ CommandText { System::String ^ get(); void set(System::String ^ value); };
public abstract string CommandText { get; set; }
member this.CommandText : string with get, set
Public MustOverride Property CommandText As String

속성 값

실행할 텍스트 명령입니다. 기본값은 빈 문자열("")입니다.

구현

설명

를 로 CommandTypeStoredProcedure설정하면 속성을 저장 프로시저의 이름으로 설정 CommandText 해야 합니다. 명령은 메서드 중 하나를 호출할 때 이 저장 프로시저를 실행합니다 Execute .

적용 대상

추가 정보