Share via


AudienceCollection.Item Property (String)

Gets the Audience object with the specified name from the collection.

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    AudienceName As String _
) As Audience
    Get
'Usage
Dim instance As AudienceCollection
Dim AudienceName As String
Dim value As Audience

value = instance(AudienceName)
public Audience this[
    string AudienceName
] { get; }

Parameters

  • AudienceName
    Type: System.String
    A string that specifies the name of the Audience object.

Property Value

Type: Microsoft.Office.Server.Audience.Audience
A Audience object that represents the Audience object from the AudienceCollection with the specified name.

Remarks

In Microsoft Visual C#, the Item property is the indexer for the AudienceCollection class.

See Also

Reference

AudienceCollection Class

AudienceCollection Members

Item Overload

Microsoft.Office.Server.Audience Namespace