다음을 통해 공유


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

  • bCentral
    Type: System.Boolean

    true indicates audience information is stored in a central location; otherwise, false.

  • bPublic
    Type: System.Boolean

    true indicates audience information for this site is available to other portal sites; otherwise, false.

See Also

Reference

AudienceSiteInfo Class

AudienceSiteInfo Members

AudienceSiteInfo Overload

Microsoft.Office.Server.Audience Namespace