C# Class Org.Mentalis.Security.Certificates.DistinguishedNameList

Implements a collection of DistinguishedName instances.
Inheritance: IEnumerable, ICloneable
Exibir arquivo Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
Add ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : int

Adds a DistinguishedName to the end of the DistinguishedNameList.

Clear ( ) : void

Removes all elements from the DistinguishedNameList.

Clone ( ) : object

Creates a shallow copy of the DistinguishedNameList.

Contains ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : bool

Determines whether an element is in the DistinguishedNameList.

CopyTo ( Array array, int index ) : void

Copies the entire DistinguishedNameList to a compatible one-dimensional Array, starting at the specified index of the target array.

DistinguishedNameList ( ) : System

Initializes a new DistinguishedNameList instance.

GetEnumerator ( ) : IEnumerator

Returns an enumerator for the entire DistinguishedNameList.

IndexOf ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : int

Searches for the specified DistinguishedName and returns the zero-based index of the first occurrence within the entire DistinguishedNameList.

Insert ( int index, Org.Mentalis.Security.Certificates.DistinguishedName value ) : void

Inserts an element into the DistinguishedNameList at the specified index.

Remove ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : void

Removes the first occurrence of a specific object from the DistinguishedNameList.

RemoveAt ( int index ) : void

Removes the element at the specified index of the DistinguishedNameList.

this ( int index ) : Org.Mentalis.Security.Certificates.DistinguishedName

Gets or sets the element at the specified index.

Private Methods

Method Description
DistinguishedNameList ( ArrayList state ) : System

Initializes a new DistinguishedNameList instance.

Method Details

Add() public method

Adds a DistinguishedName to the end of the DistinguishedNameList.
is a null reference (Nothing in Visual Basic). The list is read-only -or- the list has a fixed size.
public Add ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : int
value Org.Mentalis.Security.Certificates.DistinguishedName The to be added to the end of the DistinguishedNameList.
return int

Clear() public method

Removes all elements from the DistinguishedNameList.
The list is read-only -or- the list has a fixed size.
public Clear ( ) : void
return void

Clone() public method

Creates a shallow copy of the DistinguishedNameList.
public Clone ( ) : object
return object

Contains() public method

Determines whether an element is in the DistinguishedNameList.
is a null reference (Nothing in Visual Basic).
public Contains ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : bool
value Org.Mentalis.Security.Certificates.DistinguishedName The Object to locate in the DistinguishedNameList. The element to locate cannot be a null reference (Nothing in Visual Basic).
return bool

CopyTo() public method

Copies the entire DistinguishedNameList to a compatible one-dimensional Array, starting at the specified index of the target array.
is a null reference (Nothing in Visual Basic). is less than zero. is multidimensional -or- is equal to or greater than the length of -or- the number of elements in the source DistinguishedNameList is greater than the available space from to the end of the destination array. The type of the source DistinguishedNameList cannot be cast automatically to the type of the destination array.
public CopyTo ( Array array, int index ) : void
array System.Array The one-dimensional Array that is the destination of the elements copied from DistinguishedNameList. The Array must have zero-based indexing.
index int The zero-based index in at which copying begins.
return void

DistinguishedNameList() public method

Initializes a new DistinguishedNameList instance.
public DistinguishedNameList ( ) : System
return System

GetEnumerator() public method

Returns an enumerator for the entire DistinguishedNameList.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

IndexOf() public method

Searches for the specified DistinguishedName and returns the zero-based index of the first occurrence within the entire DistinguishedNameList.
is a null reference (Nothing in Visual Basic).
public IndexOf ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : int
value Org.Mentalis.Security.Certificates.DistinguishedName The DistinguishedName to locate in the DistinguishedNameList.
return int

Insert() public method

Inserts an element into the DistinguishedNameList at the specified index.
is a null reference (Nothing in Visual Basic). is less than zero -or- is greater than . The DistinguishedNameList is read-only -or- the DistinguishedNameList has a fixed size.
public Insert ( int index, Org.Mentalis.Security.Certificates.DistinguishedName value ) : void
index int The zero-based index at which should be inserted.
value Org.Mentalis.Security.Certificates.DistinguishedName The to insert.
return void

Remove() public method

Removes the first occurrence of a specific object from the DistinguishedNameList.
is a null reference (Nothing in Visual Basic). The DistinguishedNameList is read-only -or- the DistinguishedNameList has a fixed size.
public Remove ( Org.Mentalis.Security.Certificates.DistinguishedName value ) : void
value Org.Mentalis.Security.Certificates.DistinguishedName The to remove from the DistinguishedNameList.
return void

RemoveAt() public method

Removes the element at the specified index of the DistinguishedNameList.
is less than zero -or- is greater than . The DistinguishedNameList is read-only -or- the DistinguishedNameList has a fixed size.
public RemoveAt ( int index ) : void
index int The zero-based index of the element to remove.
return void

this() public method

Gets or sets the element at the specified index.
is a null reference (Nothing in Visual Basic). is less than zero -or- is equal to or greater than .
public this ( int index ) : Org.Mentalis.Security.Certificates.DistinguishedName
index int The zero-based index of the element to get or set.
return Org.Mentalis.Security.Certificates.DistinguishedName