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
serverContext
Type: Microsoft.Office.Server.ServerContextReference to the SPServiceContext object that represents the site with which this instance of the AudienceManager object is associated.
Remarks
This constructor retrieves the URL and globally unique identifier (GUID) for the current site based on the SPServiceContext object.