MailAddressCollection Class (System.Net.Mail) | Microsoft Docs

definition

examples

The following example adds an email address to the collection of email addresses returned by the bcc property.

remarks

The mailmessage.to, mailmessage.cc, and mailmessage.bcc properties return instances of this class that are used to store the respective email addresses.

For details on the mail address formats supported by the mailaddresscollection class, see the mailaddress class.

constructors

initializes an empty instance of the mailaddresscollection class.

properties

gets the number of elements actually contained in the collection<t>.

gets or sets the element at the specified index.

gets an ilist<t> wrapper around the collection<t>.

methods

add a list of email addresses to the collection.

adds an object to the end of the collection<t>.

removes all elements from the collection<t>.

removes all elements from the collection<t>.

determines if an element is in the collection<t>.

copy the entire collection<t> to a compatible one-dimensional array, starting at the specified index of the target array.

determines if the specified object is equal to the current object.

returns an enumerator that iterates through the collection<t>.

serves as the default hash function.

gets the type of the current instance.

finds the specified object and returns the zero-based index of the first occurrence within the entire collection<t>.

inserts an element into the collection<t> at the specified index.

inserts an email address into the collection of email addresses, at the specified location.

inserts an element into the collection<t> at the specified index.

creates a shallow copy of the current object.

removes the first occurrence of a specific object from the collection<t>.

removes the element at the specified index from the collection<t>.

removes the element at the specified index from the collection<t>.

replaces the element at the specified index.

replaces the element at the specified index.

returns a string representation of the email addresses in this email address collection object.

explicit interface implementations

Copies the elements of the icollection to an array, starting at a particular array index.

gets a value indicating whether access to the icollection is synchronized (thread-safe).

gets an object that can be used to synchronize access to the collection.

Gets a value indicating whether icollection<t> is read-only.

returns an enumerator that iterates through a collection.

add an element to the ilist.

determines if the ilist contains a specific value.

determines the index of a specific element in the ilist.

inserts an element into the ilist at the specified index.

gets a value indicating whether the ilist has a fixed size.

gets a value indicating whether the ilist is read-only.

gets or sets the element at the specified index.

remove the first occurrence of a specific object from the ilist.

extension methods

returns a readonly collection of readonly<t> wrapper for the specified list.

creates an immutable array from the specified collection.

builds an immutable dictionary from an existing collection of elements, applying a transform function to the source keys.

builds an immutable dictionary based on some transformation of a sequence.

enumerates and transforms a stream and produces an immutable dictionary of its contents.

enumerates and transforms a sequence and produces an immutable dictionary of its contents using the specified key matcher.

enumerates and transforms a sequence, and produces an immutable dictionary of its contents using the specified key and value matchers.

enumerates a stream and produces an immutable hash set of its contents.

enumerates a sequence, produces an immutable hash array of its contents, and uses the equality comparer specified for the array type.

enumerates a stream and produces an immutable list of its contents.

enumerates and transforms a sequence and produces an immutable ordered dictionary of its contents.

enumerates and transforms a sequence and produces an immutable sorted dictionary of its contents using the specified key matcher.

enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents using the specified key and value matchers.

enumerates a sequence and produces an immutable ordered set of its contents.

enumerates a sequence, produces an immutable ordered set of its contents, and uses the specified comparer.

returns a data table containing copies of the objects in the data row, given an ienumerable entry<t> object where the generic parameter t is datarow.

Copies data row objects to the specified data table, given an ienumerable entry<t> object where the generic parameter t is datarow.

Copies data row objects to the specified data table, given an ienumerable entry<t> object where the generic parameter t is datarow.

applies an accumulator function on a sequence.

applies an accumulator function on a sequence. the specified initial value is used as the initial accumulator value.

applies an accumulator function on a sequence. the specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

determines if all elements of a sequence satisfy a condition.

determines if a sequence contains any elements.

determines if any element of a sequence satisfies a condition.

appends a value to the end of the sequence.

returns the input typed as ienumerable<t>.

calculates the average of a sequence of decimal values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the average of a sequence of double values ​​obtained by invoking a transformation function on each element of the input sequence.

calculates the average of a sequence of int32 values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the average of a sequence of int64 values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the average of a sequence of nullable decimal values ​​that are obtained by invoking a transformation function on each element of the input sequence.

See Also:  Kena: Bridge Of Spirits - Where To Find Every Spirit Mail - GameSpot

calculates the average of a sequence of nullable double values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the average of a sequence of nullable int32 values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the average of a sequence of nullable int64 values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the average of a sequence of unique nullable values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the average of a sequence of unique values ​​that are obtained by invoking a transformation function on each element of the input sequence.

casts the elements of an ienumerable to the specified type.

splits the elements of a sequence into chunks of maximum size.

concatenates two sequences.

determines whether a sequence contains a specific element using the default equality comparer.

determines whether a sequence contains a specific element using an equality comparer<t> specified.

returns the number of elements in a sequence.

returns a number representing how many elements in the specified sequence satisfy a condition.

returns the elements of the specified sequence or the default value of the type parameter in a singleton collection if the sequence is empty.

returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.

returns distinct elements of a sequence using the default equality comparer to compare values.

returns distinct elements of a sequence using a specified equality comparer<t> to compare values.

returns different elements of a sequence according to a specific key selector function.

returns distinct elements of a sequence according to a specific key selector function and uses a specific comparer to compare keys.

returns the element at a specified index in a sequence.

returns the element at a specified index in a sequence.

returns the element at a specified index in a sequence or a default value if the index is out of range.

returns the element at a specified index in a sequence or a default value if the index is out of range.

produces the set difference of two sequences using the default equality comparer to compare values.

produces the stated difference of two sequences using the specified equality comparer<t> to compare values.

produces the set difference of two sequences according to a specific key selector function.

produces the set difference of two sequences according to a specific key selector function.

returns the first element of a sequence.

returns the first element of a sequence that meets a specified condition.

returns the first element of a sequence, or a default value if the sequence contains no elements.

returns the first element of a sequence, or a specified default value if the sequence contains no elements.

returns the first element in the sequence that meets a condition or a default value if that element is not found.

returns the first element in the sequence that meets a condition, or a specified default value if no such element is found.

groups the elements of a sequence according to a specific key selector function.

groups the elements of a sequence according to a specific key selector function and compares the keys using a specific comparer.

groups the elements of a sequence according to a specific key selection function and casts the elements for each group by using a specific function.

groups the elements of a sequence according to a key selector function. the keys are compared using a comparer and the elements of each group are projected using a specific function.

groups the elements of a sequence according to a specific key selector function and creates a result value from each group and its key.

groups the elements of a sequence according to a specific key selector function and creates a result value from each group and its key. the keys are compared using a specific matcher.

groups the elements of a sequence according to a specific key selector function and creates a result value from each group and its key. the elements of each group are projected using a specific function.

groups the elements of a sequence according to a specific key selector function and creates a result value from each group and its key. the key values ​​are compared using a specific comparer and the elements of each group are projected using a specific function.

correlates the elements of two sequences based on key equality and groups the results. the default equality comparer is used to compare keys.

correlates the elements of two sequences based on key equality and groups the results. a specified equality comparer<t> is used to compare keys.

produces the set intersection of two sequences using the default equality comparer to compare values.

produces the set intersection of two sequences using the specified equality comparer<t> to compare values.

produces the set intersection of two sequences according to a specific key selector function.

produces the set intersection of two sequences according to a specific key selector function.

correlates the elements of two sequences based on matching keys. the default equality comparer is used to compare keys.

correlates the elements of two sequences based on matching keys. a specified equality comparer<t> is used to compare keys.

returns the last element of a sequence.

returns the last element of a sequence that meets a specified condition.

returns the last element of a sequence, or a default value if the sequence contains no elements.

returns the last element of a sequence, or a specified default value if the sequence contains no elements.

returns the last element of a sequence that meets a condition or a default value if that element is not found.

See Also:  Best Macaron delivery in 2022 | Review & Unboxing with Pictures - Pastreez

returns the last element of a sequence that meets a condition, or a specified default value if no such element is found.

returns an int64 that represents the total number of elements in a sequence.

returns an int64 that represents how many elements in a sequence satisfy a condition.

returns the maximum value in a generic sequence.

returns the maximum value in a generic sequence.

calls a transformation function on each element of a sequence and returns the maximum decimal value.

calls a transformation function on each element of a sequence and returns the maximum double value.

calls a transform function on each element of a sequence and returns the maximum int32 value.

calls a transform function on each element of a sequence and returns the maximum int64 value.

calls a transform function on each element of a sequence and returns the maximum nullable decimal value.

calls a transform function on each element of a sequence and returns the maximum nullable double value.

calls a transform function on each element of a sequence and returns the maximum nullable int32 value.

calls a transform function on each element of a sequence and returns the maximum nullable int64 value.

calls a transformation function on each element of a sequence and returns the maximum unique nullable value.

calls a transformation function on each element of a sequence and returns the maximum unique value.

calls a transform function on each element of a generic sequence and returns the resulting maximum value.

returns the maximum value in a generic sequence according to a specified key selector function.

returns the maximum value in a generic sequence according to a specific key selector function and key comparer.

returns the minimum value in a generic sequence.

returns the minimum value in a generic sequence.

calls a transformation function on each element of a sequence and returns the minimum decimal value.

calls a transformation function on each element of a sequence and returns the minimum double value.

calls a transform function on each element of a sequence and returns the minimum int32 value.

calls a transform function on each element of a sequence and returns the minimum int64 value.

calls a transformation function on each element of a sequence and returns the minimum nullable decimal value.

calls a transformation function on each element of a sequence and returns the minimum nullable double value.

calls a transform function on each element of a sequence and returns the minimum nullable int32 value.

calls a transform function on each element of a sequence and returns the minimum nullable int64 value.

calls a transformation function on each element of a sequence and returns the minimum unique nullable value.

calls a transformation function on each element of a sequence and returns the minimum unique value.

calls a transformation function on each element of a generic sequence and returns the resulting minimum value.

returns the minimum value in a generic sequence according to a specified key selector function.

returns the minimum value in a generic sequence according to a specific key selector function and key comparer.

filters the elements of an ienumerable based on a specified type.

sorts the elements of a sequence in ascending order.

sorts the elements of a sequence in ascending order.

sorts the elements of a sequence in ascending order based on a key.

sorts the elements of a sequence in ascending order using a specific matcher.

sorts the elements of a sequence in descending order based on a key.

sorts the elements of a sequence in descending order using a specific matcher.

sorts the elements of a sequence in descending order.

sorts the elements of a sequence in descending order.

add a value to the beginning of the sequence.

reverses the order of elements in a sequence.

casts each element of a sequence into a new form.

casts each element of a sequence into a new form by embedding the element’s index.

casts each element of a sequence into an ienumerable<t> and flatten the resulting streams into a stream.

casts each element of a sequence into an ienumerable<t> and flattens the resulting streams into a stream. the index of each source element is used in the projected form of that element.

casts each element of a sequence into an ienumerable<t>, flattens the resulting sequences into a sequence, and calls a result selection function on each element of it.

casts each element of a sequence to an ienumerable<t>, flattens the resulting sequences into a sequence, and calls a result selection function on each element of the sequence. the index of each source element is used in the intermediate projected form of that element.

determines whether two sequences are equal by comparing the elements using the default equality comparer for their type.

determines whether two sequences are equal by comparing their elements using a specified equality comparer<t>.

returns the only element in a sequence and throws an exception if there is not exactly one element in the sequence.

returns the only element in a sequence that satisfies a specified condition and throws an exception if more than one of those elements exists.

returns the only element in a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

returns the only element in a sequence, or a specified default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

returns the only element in a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element meets the condition.

returns the only element in a sequence that satisfies a specified condition, or a specific default value if no such element exists; this method throws an exception if more than one element meets the condition.

See Also:  How to Solve Yahoo Mail Temporary Error 19?

skips a specified number of elements in a sequence and then returns the remaining elements.

returns a new enumerable collection containing the elements from the source with the last count elements from the source collection omitted.

skips elements in a sequence as long as a specified condition is true, and then returns the remaining elements.

skips elements of a sequence as long as a specified condition is true, and then returns the remaining elements. the index of the element is used in the logic of the predicate function.

calculates the sum of the sequence of decimal values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the sum of the sequence of double values ​​obtained by invoking a transformation function on each element of the input sequence.

calculates the sum of the sequence of int32 values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the sum of the sequence of int64 values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the sum of the sequence of nullable decimal values ​​that are obtained by invoking a transformation function on each element of the input sequence.

calculates the sum of the sequence of nullable double values ​​obtained by invoking a transformation function on each element of the input sequence.

calculates the sum of the sequence of nullable int32 values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the sum of the sequence of nullable int64 values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the sum of the sequence of unique nullable values ​​that are obtained by invoking a transform function on each element of the input sequence.

calculates the sum of the sequence of individual values ​​obtained by invoking a transformation function on each element of the input sequence.

returns a specified number of contiguous elements from the start of a sequence.

returns a specified range of contiguous elements from a sequence.

returns a new enumerable collection containing the last count elements from the source.

returns elements of a sequence as long as a specified condition is true.

returns elements of a sequence whenever a specified condition is true. the index of the element is used in the logic of the predicate function.

creates an array from an ienumerable<t>.

create a dictionary<tkey,tvalue> of an ienumerable<t> according to a specific key selector function.

create a dictionary<tkey,tvalue> of an ienumerable<t> according to a specific key selector function and a key comparer.

create a dictionary<tkey,tvalue> of an ienumerable<t> according to the specified functions of the key selector and element selector.

create a dictionary<tkey,tvalue> of an ienumerable<t> according to a specific key selector function, a matcher, and an element selector function.

creates a hashset<t> of an ienumerable<t>.

creates a hashset<t> of an ienumerable<t> using the comparer to compare keys.

create a list<t> of an ienumerable<t>.

create a search<tkey,telement> of an ienumerable<t> according to a specific key selector function.

create a search<tkey,telement> of an ienumerable<t> according to a specific key selector function and a key comparer.

create a search<tkey,telement> of an ienumerable<t> according to the specified functions of the key selector and element selector.

create a search<tkey,telement> of an ienumerable<t> according to a specified key selector function, a comparer, and an element selector function.

attempts to determine the number of elements in a sequence without forcing an enumeration.

produces the union of sets of two sequences using the default equality comparer.

produces the union of sets of two sequences using a specified equality comparer<t>.

produces the set union of two sequences according to a specific key selector function.

produces the set union of two sequences according to a specific key selector function.

filters a sequence of values ​​based on a predicate.

filters a sequence of values ​​based on a predicate. the index of each element is used in the logic of the predicate function.

produces a sequence of tuples with elements from the two specified sequences.

produces a sequence of tuples with elements from the three specified sequences.

applies a specific function to corresponding elements of two sequences, producing a sequence of the results.

enables parallelization of a query.

enables parallelization of a query.

converts an ienumerable to an iqueryable.

converts a generic ienumerable<t> to a generic<t> queryable.

returns a collection of elements containing the ancestors of each node in the source collection.

returns a filtered collection of elements containing the ancestors of each node in the source collection. only elements that have a matching xname are included in the collection.

returns a collection of the descendant nodes of each document and item in the source collection.

returns a collection of elements containing the descendant elements of each element and document in the source collection.

returns a filtered collection of elements containing the descendant elements of each element and document in the source collection. only elements that have a matching xname are included in the collection.

returns a collection of the child elements of each element and document in the source collection.

returns a filtered collection of the child elements of each element and document in the source collection. only elements that have a matching xname are included in the collection.

returns a collection of nodes containing all the nodes in the source collection, sorted according to document order.

returns a collection of the child nodes of each document and element in the source collection.

removes all nodes in the source collection from its parent node.

applies to

see also

  • smtp client

Leave a Reply

Your email address will not be published. Required fields are marked *