DefaultHttpHandler.OverrideExecuteUrlPath 方法
定义
重写当前请求的目标 URL。Overrides the target URL for the current request.
public:
virtual System::String ^ OverrideExecuteUrlPath();
public virtual string OverrideExecuteUrlPath ();
abstract member OverrideExecuteUrlPath : unit -> string
override this.OverrideExecuteUrlPath : unit -> string
Public Overridable Function OverrideExecuteUrlPath () As String
返回
要在请求中使用的被重写的 URL;如果未提供被重写的 URL,则为 null。The overridden URL to use in the request; or null if an overridden URL is not provided.
注解
OverrideExecuteUrlPath方法返回, null 除非它在派生自类的类中被重写 DefaultHttpHandler 。The OverrideExecuteUrlPath method returns null unless it is overridden in a class that is derived from the DefaultHttpHandler class.
OverrideExecuteUrlPath仅当 ASP.NET 在 IIS 6.0 上的工作进程隔离模式下运行,并且在调用对象之前未修改响应时,才会调用方法 DefaultHttpHandler 。The OverrideExecuteUrlPath method is called only if ASP.NET is running in worker process isolation mode on IIS 6.0, and if the response was not modified before the DefaultHttpHandler object was called. 响应由以下任意内容修改:The response is modified by any of the following:
调用 HttpResponse.Write。Calling HttpResponse.Write.
调用 HttpResponse.AddHeader。Calling HttpResponse.AddHeader.
调用 HttpResponse.Flush。Calling HttpResponse.Flush.
更改响应的缓存策略。Changing the cache policy for the response.
将 Stream 对象作为筛选器添加到 HttpResponse.Filter 属性。Adding a Stream object as a filter to the HttpResponse.Filter property.