Share via


ByteArrayContent 생성자

정의

ByteArrayContent 클래스의 새 인스턴스를 초기화합니다.

오버로드

ByteArrayContent(Byte[])

ByteArrayContent 클래스의 새 인스턴스를 초기화합니다.

ByteArrayContent(Byte[], Int32, Int32)

ByteArrayContent 클래스의 새 인스턴스를 초기화합니다.

ByteArrayContent(Byte[])

Source:
ByteArrayContent.cs
Source:
ByteArrayContent.cs
Source:
ByteArrayContent.cs

ByteArrayContent 클래스의 새 인스턴스를 초기화합니다.

public:
 ByteArrayContent(cli::array <System::Byte> ^ content);
public ByteArrayContent (byte[] content);
new System.Net.Http.ByteArrayContent : byte[] -> System.Net.Http.ByteArrayContent
Public Sub New (content As Byte())

매개 변수

content
Byte[]

ByteArrayContent를 초기화하는 데 사용하는 콘텐츠입니다.

예외

content 매개 변수가 null인 경우

설명

클래스는 ByteArrayContent 제공된 바이트 배열을 내부적으로 복사하지 않고 대신 참조를 유지합니다. 호출자는 콘텐츠가 전송될 때까지 배열의 데이터를 수정해서는 안 됩니다.

적용 대상

ByteArrayContent(Byte[], Int32, Int32)

Source:
ByteArrayContent.cs
Source:
ByteArrayContent.cs
Source:
ByteArrayContent.cs

ByteArrayContent 클래스의 새 인스턴스를 초기화합니다.

public:
 ByteArrayContent(cli::array <System::Byte> ^ content, int offset, int count);
public ByteArrayContent (byte[] content, int offset, int count);
new System.Net.Http.ByteArrayContent : byte[] * int * int -> System.Net.Http.ByteArrayContent
Public Sub New (content As Byte(), offset As Integer, count As Integer)

매개 변수

content
Byte[]

ByteArrayContent를 초기화하는 데 사용하는 콘텐츠입니다.

offset
Int32

ByteArrayContent를 초기화하는 데 사용되는 content 매개 변수의 오프셋(바이트)입니다.

count
Int32

ByteArrayContent를 초기화하기 위해 사용되는 content 매개 변수에서 시작하는 offset의 바이트 수입니다.

예외

content 매개 변수가 null인 경우

offset 매개 변수가 0보다 작습니다.

또는

offset 매개 변수의 값이 content 매개 변수가 지정한 콘텐츠 길이보다 큽니다.

또는

count 매개 변수가 0보다 작습니다.

또는

count 매개 변수가 content 매개 변수에서 지정한 콘텐츠 길이에서 offset 매개 변수를 뺀 값보다 큽니다.

설명

클래스는 ByteArrayContent 제공된 바이트 배열을 내부적으로 복사하지 않고 대신 참조를 유지합니다. 호출자는 콘텐츠가 전송될 때까지 배열의 데이터를 수정해서는 안 됩니다.

매개 변수 및 count 매개 변수로 offset 지정된 범위만 콘텐츠로 사용됩니다.

적용 대상