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



Gets the file name this asynchronous operation is using.

Syntax

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

Property Value

The file name 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