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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈