AudienceManager Constructor (ServerContext)
Initializes a new instance of the AudienceManager class that connects to the site in the specified PortalContext object.
Namespace: Microsoft.Office.Server.Audience
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub New ( _
serverContext As ServerContext _
)
'Usage
Dim serverContext As ServerContext
Dim instance As New AudienceManager(serverContext)
public AudienceManager(
ServerContext serverContext
)
Parameters
- serverContext
Type: Microsoft.Office.Server.ServerContext
Reference to the PortalContext object that represents the portal 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 PortalContext object.