ByteArrayContent 생성자

정의

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

오버로드

Name Description
ByteArrayContent(Byte[])

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

ByteArrayContent(Byte[], Int32, Int32)

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

ByteArrayContent(Byte[])

Source:
ByteArrayContent.cs
Source:
ByteArrayContent.cs
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
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

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

count
Int32

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

예외

매개 변수는 content .입니다 null.

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

-또는-

offset 매개 변수가 매개 변수에 지정된 콘텐츠 길이보다 큽합니다content.

-또는-

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

-또는-

count 매개 변수가 매개 변수로 지정된 콘텐츠 길이보다 크면 매개 변수를 content 뺀 값입니다offset.

설명

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

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

적용 대상