다음을 통해 공유


AudienceSiteInfo.CurrentServerContext Property

NOTE: This API is now obsolete.

Gets an instance of Microsoft.Office.Server.ServerContext object that contains information about the portal site associated with this audience.

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 AudienceSiteInfo
Dim value As ServerContext

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

Property Value

Type: Microsoft.Office.Server.ServerContext
An instance of the Microsoft.Office.Server.ServerContext object that contains information about the portal site associated with this audience.

Remarks

The CurrentServerContext property is read-only.

See Also

Reference

AudienceSiteInfo Class

AudienceSiteInfo Members

Microsoft.Office.Server.Audience Namespace