StringList StringList StringList Class

Definition

Represents a list of strings.

public ref class StringList sealed : Microsoft::Exchange::WebServices::Data::ComplexProperty, System::Collections::Generic::IEnumerable<System::String ^>
public sealed class StringList : Microsoft.Exchange.WebServices.Data.ComplexProperty, System.Collections.Generic.IEnumerable<string>
Public NotInheritable Class StringList
Inherits ComplexProperty
Implements IEnumerable(Of String)
Inheritance
Implements

Constructors

StringList() StringList() StringList()

Initializes a new instance of the Microsoft.Exchange.WebServices.Data.StringList class.

StringList(IEnumerable<String>) StringList(IEnumerable<String>) StringList(IEnumerable<String>)

Initializes a new instance of the Microsoft.Exchange.WebServices.Data.StringList class.

Properties

Count Count Count

Gets the number of strings in the list.

Item[Int32] Item[Int32] Item[Int32]

Gets or sets the string at the specified index.

Methods

Add(String) Add(String) Add(String)

Adds a string to the list.

AddRange(IEnumerable<String>) AddRange(IEnumerable<String>) AddRange(IEnumerable<String>)

Adds multiple strings to the list.

Clear() Clear() Clear()

Clears the list.

Contains(String) Contains(String) Contains(String)

Determines whether the list contains a specific string.

Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified System.Object is equal to the current System.Object.

GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator that iterates through the elements of the collection.

GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for a particular type.

Remove(String) Remove(String) Remove(String)

Removes a string from the list.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes the string at the specified position from the list.

ToString() ToString() ToString()

Generates a string representation of all the items in the list.

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets an enumerator that iterates through the elements of the collection. The IEnumerable.GetEnumerator() method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

Applies to