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



Gets the URI this asynchronous operation is using.

Syntax

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

Property Value

The CodecsAsyncCompletedEventArgs.Uri 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