Share via


StreamingCollection<T>.HandleExceptions Property

Indicates whether MoveNext() handles exceptions that may occur or rethrows them.

By default, this is set to true because the iteration is generally being done by ASP.NET during the serialization process and we cannot just throw an exception to ASP.NET in the middle of this process. However, if a StreamingCollection is being used and iterated over explicitly, the caller would want to set this to false in order to handle any exceptions itself.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Property HandleExceptions As Boolean
public bool HandleExceptions { get; set; }
public:
property bool HandleExceptions {
    bool get ();
    void set (bool value);
}
member HandleExceptions : bool with get, set
function get HandleExceptions () : boolean 
function set HandleExceptions (value : boolean)

Property Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

StreamingCollection<T> Class

Microsoft.TeamFoundation.Framework.Server Namespace