ClientTargetSection.ClientTargets Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om