WebItem 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
允許升級版Visual Basic 6.0 WebClass專案在 ASP.NET 中運行。
public ref class WebItem
public class WebItem
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public class WebItem
type WebItem = class
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type WebItem = class
Public Class WebItem
- 繼承
-
WebItem
- 屬性
備註
當Visual Basic 6.0 WebClass 專案升級至 Visual Basic 時,該專案會轉換為 ASP.NET 網站專案。
你的專案會新增宣告:一個代表專案WebClassWebItems中的 WebClass 和 Templates 一個。 專案中新增了一個 Page_Load 事件程序,先建立一個 WebClass 物件,接著為與 Visual Basic 6.0 WebClass 專案相關的 WebItems 和 Templates 建立 WebItem 物件。 最後,在事件程序中 Page_Load ,你會看到一個呼叫相容 WebClass 性執行時: ProcessEvents。 這使得執行時能夠呈現請求 URL 中指定的內容 WebItem 。 這段程式碼是你升級專案中唯一新增的程式碼,僅用來模擬 Visual Basic 6.0 WebClass 執行時的底層行為。
備註
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。
建構函式
| 名稱 | Description |
|---|---|
| WebItem(String, WebClass, String) |
已淘汰.
初始化 WebItem 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Name |
已淘汰.
取得程式碼中用來識別物件 WebItem 的名稱。 |
| ReScanReplacements |
已淘汰.
取得或設定一個值,決定是否重新掃描包含在替換文字中的標記。 |
| TagPrefix |
已淘汰.
取得或設定用於 HTML 模板中替換標籤名稱前綴的字串。 |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
已淘汰.
判斷指定的 物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
已淘汰.
做為預設雜湊函式。 (繼承來源 Object) |
| GetType() |
已淘汰.
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
已淘汰.
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
已淘汰.
傳回表示目前 物件的字串。 (繼承來源 Object) |
| WriteTemplate(HttpResponse, String) |
已淘汰.
處理附加於 |