다음을 통해 공유


AudienceManager Constructor (ServerContext)

NOTE: This API is now obsolete.

Initializes a new instance of the AudienceManager class that connects to the site in the specified SPServiceContext object.

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

Syntax

'Declaration
<ObsoleteAttribute("ServerContext parameter is obsolete, use SPServiceContext instead.")> _
Public Sub New ( _
    serverContext As ServerContext _
)
'Usage
Dim serverContext As ServerContext

Dim instance As New AudienceManager(serverContext)
[ObsoleteAttribute("ServerContext parameter is obsolete, use SPServiceContext instead.")]
public AudienceManager(
    ServerContext serverContext
)

Parameters

Remarks

This constructor retrieves the URL and globally unique identifier (GUID) for the current site based on the SPServiceContext object.

See Also

Reference

AudienceManager Class

AudienceManager Members

AudienceManager Overload

Microsoft.Office.Server.Audience Namespace