LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Stream Property
See Also 
Leadtools.Codecs Namespace > CodecsAsyncCompletedEventArgs Class : Stream Property



Gets the stream this asynchronous operation is using.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Stream As Stream
Visual Basic (Usage)Copy Code
Dim instance As CodecsAsyncCompletedEventArgs
Dim value As Stream
 
value = instance.Stream
C# 
public Stream Stream {get;}
C++/CLI 
public:
property Stream^ Stream {
   Stream^ get();
}

Property Value

The CodecsAsyncCompletedEventArgs.Stream this asynchronous operation is using.

Example

Remarks

Only one of the following can be a valid value (not a null reference) at any time: CodecsAsyncCompletedEventArgs.Uri, CodecsAsyncCompletedEventArgs.Stream or CodecsAsyncCompletedEventArgs.FileName. The property that contains a valid reference depends on what version of RasterCodecs.GetInformationAsync or RasterCodecs.LoadAsync method has been called.

For example, if RasterCodecs.LoadAsync(Uri uri, object userState) is being called, the CodecsAsyncCompletedEventArgs.Uri will contain the same URI passed to the method while CodecsAsyncCompletedEventArgs.Stream and CodecsAsyncCompletedEventArgs.FileName will both be null. If RasterCodecs.LoadAsync(String fileName, object userState) is being called, the CodecsAsyncCompletedEventArgs.FileName will contain the same file name string value passed to the method while CodecsAsyncCompletedEventArgs.Uri and CodecsAsyncCompletedEventArgs.Stream will both be null and so on.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also