Export (0) Print
Expand All

HttpResponse.AddFileDependency Method

Adds a single file name to the collection of file names on which the current response is dependent.

[Visual Basic]
Public Sub AddFileDependency( _
   ByVal filename As String _
)
[C#]
public void AddFileDependency(
 string filename
);
[C++]
public: void AddFileDependency(
 String* filename
);
[JScript]
public function AddFileDependency(
   filename : String
);

Parameters

filename
The name of the file to add.

Example

The following example adds a single file name to the file dependency list.

[Visual Basic] 
Dim FileName As String
 FileName = "C:\Files\F1.txt"
 Response.AddFileDependency(FileName)
    

[C#] 
String FileName;
 FileName = "C:\\Files\\F1.txt";
 Response.AddFileDependency(FileName);
    

[C++] 
String* FileName;
 FileName = S"C:\\Files\\F1.txt";
 Response->AddFileDependency(FileName);
    

[JScript] 
var fileName : String = "C:\\Files\\F1.txt"
Response.AddFileDependency(fileName)

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Show:
© 2014 Microsoft