언어

IDbCommand.CommandText 속성

정의

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

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

속성 값

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

설명

속성이 CommandType 설정된 StoredProcedure경우 저장 프로시저의 이름으로 속성을 설정합니다 CommandText . 저장 프로시저 이름에 특수 문자가 포함된 경우 이스케이프 문자 구문을 사용해야 할 수 있습니다. 명령어는 Execute 메서드 중 하나를 호출하면 이 저장 프로시저를 호출합니다.

적용 대상