表示使用者代理程式與別名的對應。
Syntax
class ClientTarget : CollectionElement
方法
這個類別不包含任何方法。
屬性
下表列出 類別所 ClientTarget 公開的屬性。
| 名稱 | 描述 |
|---|---|
Alias |
唯讀 string 值,其中包含對應至 屬性中所 UserAgent 指定之使用者代理程式的別名。 索引鍵屬性。 |
UserAgent |
可識別特定使用者代理程式的讀取/寫入 string 值。 |
子類別
這個類別不包含子類別。
備註
這個類別的實例包含在 ClientTargetClientTargetSection 類別的 屬性中。
下列 ClientTarget 值是在 .NET Framework 2.0 的根Web.config檔案中設定。
| Alias | 使用者代理程式 |
|---|---|
| 「ie5」 | 「Mozilla/4.0 (相容;MSIE 5.5;Windows NT 4.0) 」 |
| 「ie4」 | 「Mozilla/4.0 (相容;MSIE 4.0;Windows NT 4.0) 」 |
| 「uplevel」 | 「Mozilla/4.0 (相容;MSIE 5.5;Windows NT 5.1) 」 |
| 「downlevel」 | 「泛型下層」 |
繼承階層架構
ClientTarget
規格需求
| 類型 | 描述 |
|---|---|
| Client | - Windows Vista 上的 IIS 7.0 - Windows 7 上的 IIS 7.5 - Windows 8 上的 IIS 8.0 - Windows 10上的 IIS 10.0 |
| 伺服器 | - Windows Server 2008 上的 IIS 7.0 - Windows Server 2008 R2 上的 IIS 7.5 - Windows Server 2012 上的 IIS 8.0 - Windows Server 2012 R2 上的 IIS 8.5 - Windows Server 2016上的 IIS 10.0 |
| 產品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
| MOF 檔案 | WebAdministration.mof |