SqlParameter.Direction 속성
이 문서의 내용
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
매개 변수가 입력 전용, 출력 전용, 양방향 또는 저장 프로시저 반환 값 매개 변수인지 나타내는 값을 가져오거나 설정합니다.
public:
virtual property System::Data::ParameterDirection Direction { System::Data::ParameterDirection get(); void set(System::Data::ParameterDirection value); };
public:
property System::Data::ParameterDirection Direction { System::Data::ParameterDirection get(); void set(System::Data::ParameterDirection value); };
public override System.Data.ParameterDirection Direction { get; set; }
[System.Data.DataSysDescription("DataParameter_Direction")]
public System.Data.ParameterDirection Direction { get; set; }
member this.Direction : System.Data.ParameterDirection with get, set
[<System.Data.DataSysDescription("DataParameter_Direction")>]
member this.Direction : System.Data.ParameterDirection with get, set
Public Overrides Property Direction As ParameterDirection
Public Property Direction As ParameterDirection
ParameterDirection 값 중 하나입니다. 기본값은 Input
입니다.
- 특성
속성에 유효한 ParameterDirection 값 중 하나를 설정하지 않은 경우
다음 예제에서는 을 SqlParameter 만들고 해당 속성 중 일부를 설정합니다.
가 ParameterDirection 출력이고 연결된 SqlCommand 의 실행이 값을 반환하지 않는 경우 에는 SqlParameter null 값이 포함됩니다.
Output
, InputOut
및 ReturnValue
를 호출 ExecuteReader 하여 반환된 매개 변수는 를 닫 SqlDataReader을 때까지 액세스할 수 없습니다.
적용 대상
제품 | 버전 |
---|---|
.NET | Core 1.0, Core 1.1, 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.