CryptographicAttributeObjectCollection.Add Metod

Definition

Lägger till ett objekt i samlingen.

Överlagringar

Name Description
Add(AsnEncodedData)

Lägger till det angivna AsnEncodedData objektet i samlingen.

Add(CryptographicAttributeObject)

Lägger till det angivna CryptographicAttributeObject objektet i samlingen.

Add(AsnEncodedData)

Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs

Lägger till det angivna AsnEncodedData objektet i samlingen.

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

Parametrar

asnEncodedData
AsnEncodedData

Objektet AsnEncodedData som ska läggas till i samlingen.

Returer

trueom metoden returnerar det nollbaserade indexet för det tillagda objektet. annars . false

Undantag

asnEncodedData är null.

Det gick inte att slutföra en kryptografisk åtgärd.

Se även

Gäller för

Add(CryptographicAttributeObject)

Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs
Källa:
CryptographicAttributeObjectCollection.cs

Lägger till det angivna CryptographicAttributeObject objektet i samlingen.

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

Parametrar

attribute
CryptographicAttributeObject

Objektet CryptographicAttributeObject som ska läggas till i samlingen.

Returer

trueom metoden returnerar det nollbaserade indexet för det tillagda objektet. annars . false

Undantag

Det gick inte att slutföra en kryptografisk åtgärd.

Det angivna objektet finns redan i samlingen.

Exempel

Remove

Se även

Gäller för