ProtectFromDispose Method
See Also 
System.IO Namespace > ExtensionMethods Class : ProtectFromDispose Method



target

Glossary Item Box

Syntax

Visual Basic (Declaration)  
<ExtensionAttribute()>
Public Shared Function ProtectFromDispose( _
   ByVal target As Stream _
) As Stream
Visual Basic (Usage) Copy Code
Dim target As Stream
Dim value As Stream
 
value = ExtensionMethods.ProtectFromDispose(target)
C#  
[Extension()]
public static Stream ProtectFromDispose( 
   Stream target
)
C++/CLI  
[Extension()]
public:
static Stream^ ProtectFromDispose( 
   Stream^ target
) 

Parameters

target

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