AudienceSiteInfo Constructor (ServerContext, Boolean, Boolean, AudienceAccessRights)
NOTE: This API is now obsolete.
Initializes a new instance of the AudienceSiteInfo class with the specified access rights and a reference to a Microsoft.Office.Server.ServerContext object that represents the current portal site.
Namespace: Microsoft.Office.Server.Audience
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
<ObsoleteAttribute("AudienceSiteInfo constructor using the bCentral and bPublic parameters is obsolete")> _
Public Sub New ( _
serverContext As ServerContext, _
bCentral As Boolean, _
bPublic As Boolean, _
AccessRights As AudienceAccessRights _
)
'Usage
Dim serverContext As ServerContext
Dim bCentral As Boolean
Dim bPublic As Boolean
Dim AccessRights As AudienceAccessRights
Dim instance As New AudienceSiteInfo(serverContext, _
bCentral, bPublic, AccessRights)
[ObsoleteAttribute("AudienceSiteInfo constructor using the bCentral and bPublic parameters is obsolete")]
public AudienceSiteInfo(
ServerContext serverContext,
bool bCentral,
bool bPublic,
AudienceAccessRights AccessRights
)
Parameters
serverContext
Type: Microsoft.Office.Server.ServerContextReference to PortalContext object that contains information about this portal site.
bCentral
Type: System.Booleantrue indicates audience information is stored in a central location; otherwise, false.
bPublic
Type: System.Booleantrue indicates audience information for this site is available to other portal sites; otherwise, false.
AccessRights
Type: Microsoft.Office.Server.Audience.AudienceAccessRightsElement of the AudienceAccessRights enumeration that indicates the level of access to audience information for this portal site.