CryptographicAttributeObjectCollection.Add 메서드

정의

컬렉션에 개체를 추가합니다.

오버로드

Name Description
Add(AsnEncodedData)

컬렉션에 지정된 AsnEncodedData 개체를 추가합니다.

Add(CryptographicAttributeObject)

컬렉션에 지정된 CryptographicAttributeObject 개체를 추가합니다.

Add(AsnEncodedData)

Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs

컬렉션에 지정된 AsnEncodedData 개체를 추가합니다.

public:
 int Add(System::Security::Cryptography::AsnEncodedData ^ asnEncodedData);
public int Add(System.Security.Cryptography.AsnEncodedData asnEncodedData);
member this.Add : System.Security.Cryptography.AsnEncodedData -> int
Public Function Add (asnEncodedData As AsnEncodedData) As Integer

매개 변수

asnEncodedData
AsnEncodedData

AsnEncodedData 컬렉션에 추가할 개체입니다.

반품

true메서드가 추가된 항목의 인덱스(0부터 시작하는 인덱스)를 반환하면 이고, 그렇지 않으면 . false

예외

asnEncodedDatanull입니다.

암호화 작업을 완료할 수 없습니다.

추가 정보

적용 대상

Add(CryptographicAttributeObject)

Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs
Source:
CryptographicAttributeObjectCollection.cs

컬렉션에 지정된 CryptographicAttributeObject 개체를 추가합니다.

public:
 int Add(System::Security::Cryptography::CryptographicAttributeObject ^ attribute);
public int Add(System.Security.Cryptography.CryptographicAttributeObject attribute);
member this.Add : System.Security.Cryptography.CryptographicAttributeObject -> int
Public Function Add (attribute As CryptographicAttributeObject) As Integer

매개 변수

attribute
CryptographicAttributeObject

CryptographicAttributeObject 컬렉션에 추가할 개체입니다.

반품

true메서드가 추가된 항목의 인덱스(0부터 시작하는 인덱스)를 반환하면 이고, 그렇지 않으면 . false

예외

암호화 작업을 완료할 수 없습니다.

지정된 항목이 컬렉션에 이미 있습니다.

예제

Remove

추가 정보

적용 대상