System.Web Namespace HttpResponse Class
Adds a single file name to the collection of file names on which the current response is dependent.
[ VB ]
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
);
- filename
- The name of the file to add.
The following example adds a single file name to the file dependency list.
String fileName;
fileName = "C:\\Files\\myFile.txt";
Response.AddFileDependency ( fileName );
Dim fileName As String
fileName = "C:\Files\myFile.txt"
Response.AddFileDependency ( fileName ) |
|
C# |
VB |
HttpResponse Members