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;} |
Property Value
The CodecsAsyncCompletedEventArgs.Stream this asynchronous operation is using.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.
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)