편집

다음을 통해 공유


ClientTargetSection.ClientTargets Property

Definition

Gets the collection of ClientTarget objects.

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

Property Value

A ClientTargetCollection that contains the ClientTarget objects.

Attributes

Examples

The following code example shows how to get the ClientTargets collection.


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

Remarks

Each ClientTarget object contains two properties identifying a client browser, also called the user agent. One property is the alias associated with the client browser that is identified by the other property. ASP.NET uses this information to render server controls on a page.

Applies to

See also