Share via


ClientTargetSection.ClientTargets プロパティ

定義

ClientTarget オブジェクトのコレクションを取得します。

public:
 property System::Web::Configuration::ClientTargetCollection ^ ClientTargets { System::Web::Configuration::ClientTargetCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true, IsRequired=true)]
public System.Web.Configuration.ClientTargetCollection ClientTargets { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true, IsRequired=true)>]
member this.ClientTargets : System.Web.Configuration.ClientTargetCollection
Public ReadOnly Property ClientTargets As ClientTargetCollection

プロパティ値

ClientTargetCollection オブジェクトを格納している ClientTarget

属性

次のコード例は、コレクションを取得する方法を ClientTargets 示しています。


// Get the client target collection.
ClientTargetCollection clientTargets =
  clientTargetSection.ClientTargets;
' Get the client target collection.
Dim clientTargets _
As ClientTargetCollection = _
clientTargetSection.ClientTargets

注釈

ClientTarget オブジェクトには、クライアント ブラウザーを識別する 2 つのプロパティ (ユーザー エージェントとも呼ばれます) が含まれています。 1 つのプロパティは、もう一方のプロパティで識別されるクライアント ブラウザーに関連付けられているエイリアスです。 ASP.NET は、この情報を使用して、ページ上にサーバー コントロールをレンダリングします。

適用対象

こちらもご覧ください