Item(String) Property

The Item property of the AudienceCollection class gets the Audience object with the specified name from the collection.

Parameters

this   A string that specifies the name of the Audience object.

Property Value

A Microsoft.SharePoint.Portal.Audience.Audience object that represents the Audience from the AudienceCollection with the specified name.

Exceptions

Exception Type Condition
AudienceArgumentException The specified string does not match the name of an audience in this collection.

Remarks

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security