ClientTarget.Alias 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得使用者代理的別名。
public:
property System::String ^ Alias { System::String ^ get(); };
[System.Configuration.ConfigurationProperty("alias", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Alias { get; }
[<System.Configuration.ConfigurationProperty("alias", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Alias : string
Public ReadOnly Property Alias As String
屬性值
這個名稱過去指的是特定的使用者代理。
- 屬性
範例
以下程式碼範例展示了如何從現有網頁應用程式的設定檔取得 。Alias
// Get the first client target
// in the collection.
clientTarget = clientTargets[0];
// Get the alias.
alias = clientTarget.Alias;
msg = String.Format(
"Alias: {0}\n",
alias);
' Get the first client target
' in the collection.
clientTarget = clientTargets(0)
' Get the alias.
aliasStr = clientTarget.Alias
msg = String.Format( _
"Alias: {0}" + ControlChars.Lf, aliasStr)
備註
該Alias屬性指alias的是設定檔區段中元素的addclientTarget屬性。
ASP.NET 設定預設包括以下別名:
uplevel該指令指示 ASP.NET 傳送 HTML 與 ECMAScript,這些文件由 Internet Explorer 6.0 及更新版本支援。downlevel該指令指示 ASP.NET 限制 HTML 與腳本僅支援於 Internet Explorer 6.0 之前瀏覽器所支援的版本。