AudienceManager.CurrentServerContext property

NOTE: This API is now obsolete.

Gets the reference to the SPServiceContext object with which this object was initialized.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPServiceContext instead.")> _
Public ReadOnly Property CurrentServerContext As ServerContext
    Get
'Usage
Dim instance As AudienceManager
Dim value As ServerContext

value = instance.CurrentServerContext
[ObsoleteAttribute("Use SPServiceContext instead.")]
public ServerContext CurrentServerContext { get; }

Property value

Type: Microsoft.Office.Server.ServerContext
SPServiceContext . Reference to an instance of the SPServiceContext object with which this instance of the AudienceManager object was initialized.

Remarks

The CurrentServerContext property is read-only.

See also

Reference

AudienceManager class

AudienceManager members

Microsoft.Office.Server.Audience namespace