Table of Contents

Class ServiceResponseCollection<TResponse>

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents a strogly typed list of service responses.

public sealed class ServiceResponseCollection<TResponse> : IEnumerable<TResponse>, IEnumerable where TResponse : ServiceResponse

Type Parameters

TResponse

The type of response stored in the list.

Inheritance
ServiceResponseCollection<TResponse>
Implements
IEnumerable<TResponse>
Inherited Members

Properties

Count

Gets the total number of responses in the list.

public int Count { get; }

Property Value

int

this[int]

Gets the response at the specified index.

public TResponse this[int index] { get; }

Parameters

index int

The zero-based index of the response to get.

Property Value

TResponse

The response at the specified index.

OverallResult

Gets a value indicating the overall result of the request that generated this response collection. If all of the responses have their Result property set to Success, OverallResult returns Success. If at least one response has its Result property set to Warning and all other responses have their Result property set to Success, OverallResult returns Warning. If at least one response has a its Result set to Error, OverallResult returns Error.

public ServiceResult OverallResult { get; }

Property Value

ServiceResult

Methods

GetEnumerator()

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

public IEnumerator<TResponse> GetEnumerator()

Returns

IEnumerator<TResponse>

An IEnumerator for the collection.