WCF-Xtensions Class Reference for .NET
EnumerableStreamAttribute Class
Members 






An operation behavior that reduces memory consumption by serializing IEnumerable parameters in a streamed manner.
Object Model
EnumerableStreamAttribute Class
Syntax
[System.AttributeUsage(ValidOn=AttributeTargets.Method, 
   AllowMultiple=false, 
   Inherited=true)]
public class EnumerableStreamAttribute : System.Attribute 
public class EnumerableStreamAttribute = class(System.Attribute)
System.AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=, 
   Inherited=)
public class EnumerableStreamAttribute extends System.Attribute
[System.AttributeUsage(ValidOn=AttributeTargets.Method, 
   AllowMultiple=false, 
   Inherited=true)]
public __gc class EnumerableStreamAttribute : public System.Attribute 
[System.AttributeUsage(ValidOn=AttributeTargets.Method, 
   AllowMultiple=false, 
   Inherited=true)]
public ref class EnumerableStreamAttribute : public System.Attribute 
'Declaration
 
<System.AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=False, 
   Inherited=True)>
Public Class EnumerableStreamAttribute 
   Inherits System.Attribute
 
'Usage
 
Dim instance As EnumerableStreamAttribute
Remarks

The EnumerableStreamBehavior performs streamed serialization of IEnumerable parameters without loading the entire enumerable collection into memory. It is most useful when the service operation returns a large IEnumerable collection.

For the EnumerableStreamBehavior to perform as expected, the transfer mode of the transport specified by the binding being used must be set to Streamed.

This class is not available in Silverlight 4, Silverlight 3, .NET Compact Framework 3.5.
Inheritance Hierarchy

System.Object
   System.Attribute
      Noemax.WCFX.Behaviors.EnumerableStreamAttribute

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EnumerableStreamAttribute Members
Noemax.WCFX.Behaviors Namespace

Send Feedback