Share via


CoseHeaderMap.Add 메서드

정의

오버로드

Add(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

ICollection<T>에 항목을 추가합니다.

Add(CoseHeaderLabel, Byte[])

헤더 맵에 지정된 레이블 및 값을 추가합니다.

Add(CoseHeaderLabel, Int32)

헤더 맵에 지정된 레이블 및 값을 추가합니다.

Add(CoseHeaderLabel, ReadOnlySpan<Byte>)

헤더 맵에 지정된 레이블 및 값을 추가합니다.

Add(CoseHeaderLabel, CoseHeaderValue)

제공된 키와 값을 가진 요소를 IDictionary<TKey,TValue>에 추가합니다.

Add(CoseHeaderLabel, String)

헤더 맵에 지정된 레이블 및 값을 추가합니다.

Add(KeyValuePair<CoseHeaderLabel,CoseHeaderValue>)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

ICollection<T>에 항목을 추가합니다.

public:
 virtual void Add(System::Collections::Generic::KeyValuePair<System::Security::Cryptography::Cose::CoseHeaderLabel, System::Security::Cryptography::Cose::CoseHeaderValue> item);
public void Add (System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel,System.Security.Cryptography.Cose.CoseHeaderValue> item);
abstract member Add : System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel, System.Security.Cryptography.Cose.CoseHeaderValue> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<System.Security.Cryptography.Cose.CoseHeaderLabel, System.Security.Cryptography.Cose.CoseHeaderValue> -> unit
Public Sub Add (item As KeyValuePair(Of CoseHeaderLabel, CoseHeaderValue))

매개 변수

item
KeyValuePair<CoseHeaderLabel,CoseHeaderValue>

ICollection<T>에 추가할 개체입니다.

구현

예외

헤더 맵은 읽기 전용입니다.

item의 값이 유효한 CBOR 값이 아닙니다.

적용 대상

Add(CoseHeaderLabel, Byte[])

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

헤더 맵에 지정된 레이블 및 값을 추가합니다.

public:
 void Add(System::Security::Cryptography::Cose::CoseHeaderLabel label, cli::array <System::Byte> ^ value);
public void Add (System.Security.Cryptography.Cose.CoseHeaderLabel label, byte[] value);
member this.Add : System.Security.Cryptography.Cose.CoseHeaderLabel * byte[] -> unit
Public Sub Add (label As CoseHeaderLabel, value As Byte())

매개 변수

label
CoseHeaderLabel

추가할 헤더의 레이블입니다.

value
Byte[]

추가할 헤더의 값입니다.

예외

헤더 맵은 읽기 전용입니다.

설명

value 는 CBOR 바이트 문자열로 인코딩되므로 유효한 CBOR로 인코딩된 값을 포함할 필요가 없습니다. CBOR로 인코딩된 값을 직접 지정하려면 및 을 Add(CoseHeaderLabel, CoseHeaderValue)참조하세요FromEncodedValue(ReadOnlySpan<Byte>).

적용 대상

Add(CoseHeaderLabel, Int32)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

헤더 맵에 지정된 레이블 및 값을 추가합니다.

public:
 void Add(System::Security::Cryptography::Cose::CoseHeaderLabel label, int value);
public void Add (System.Security.Cryptography.Cose.CoseHeaderLabel label, int value);
member this.Add : System.Security.Cryptography.Cose.CoseHeaderLabel * int -> unit
Public Sub Add (label As CoseHeaderLabel, value As Integer)

매개 변수

label
CoseHeaderLabel

추가할 헤더의 레이블입니다.

value
Int32

추가할 헤더의 값입니다.

예외

헤더 맵은 읽기 전용입니다.

적용 대상

Add(CoseHeaderLabel, ReadOnlySpan<Byte>)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

헤더 맵에 지정된 레이블 및 값을 추가합니다.

public:
 void Add(System::Security::Cryptography::Cose::CoseHeaderLabel label, ReadOnlySpan<System::Byte> value);
public void Add (System.Security.Cryptography.Cose.CoseHeaderLabel label, ReadOnlySpan<byte> value);
member this.Add : System.Security.Cryptography.Cose.CoseHeaderLabel * ReadOnlySpan<byte> -> unit
Public Sub Add (label As CoseHeaderLabel, value As ReadOnlySpan(Of Byte))

매개 변수

label
CoseHeaderLabel

추가할 헤더의 레이블입니다.

value
ReadOnlySpan<Byte>

추가할 헤더의 값입니다.

예외

헤더 맵은 읽기 전용입니다.

설명

value 는 CBOR 바이트 문자열로 인코딩되므로 유효한 CBOR로 인코딩된 값을 포함할 필요가 없습니다. CBOR로 인코딩된 값을 직접 지정하려면 및 을 Add(CoseHeaderLabel, CoseHeaderValue)참조하세요FromEncodedValue(ReadOnlySpan<Byte>).

적용 대상

Add(CoseHeaderLabel, CoseHeaderValue)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

제공된 키와 값을 가진 요소를 IDictionary<TKey,TValue>에 추가합니다.

public:
 virtual void Add(System::Security::Cryptography::Cose::CoseHeaderLabel key, System::Security::Cryptography::Cose::CoseHeaderValue value);
public void Add (System.Security.Cryptography.Cose.CoseHeaderLabel key, System.Security.Cryptography.Cose.CoseHeaderValue value);
abstract member Add : System.Security.Cryptography.Cose.CoseHeaderLabel * System.Security.Cryptography.Cose.CoseHeaderValue -> unit
override this.Add : System.Security.Cryptography.Cose.CoseHeaderLabel * System.Security.Cryptography.Cose.CoseHeaderValue -> unit
Public Sub Add (key As CoseHeaderLabel, value As CoseHeaderValue)

매개 변수

key
CoseHeaderLabel

추가할 요소의 키로 사용할 개체입니다.

value
CoseHeaderValue

추가할 요소의 값으로 사용할 개체입니다.

구현

예외

헤더 맵은 읽기 전용입니다.

value 가 유효한 CBOR 값이 아닙니다.

적용 대상

Add(CoseHeaderLabel, String)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

헤더 맵에 지정된 레이블 및 값을 추가합니다.

public:
 void Add(System::Security::Cryptography::Cose::CoseHeaderLabel label, System::String ^ value);
public void Add (System.Security.Cryptography.Cose.CoseHeaderLabel label, string value);
member this.Add : System.Security.Cryptography.Cose.CoseHeaderLabel * string -> unit
Public Sub Add (label As CoseHeaderLabel, value As String)

매개 변수

label
CoseHeaderLabel

추가할 헤더의 레이블입니다.

value
String

추가할 헤더의 값입니다.

예외

헤더 맵은 읽기 전용입니다.

적용 대상