ActivityPreferencePerType class

This object, member, or enumeration is deprecated and is not intended to be used in your code.  SharePoint 2013 includes the following APIs for working with feeds: .NET client, JavaScript, REST, and server. See Work with social feeds in SharePoint 2013 to choose the API for your specific feed-related programming tasks.  

Contains an ActivityType object and a Boolean value indicating whether a preference for this type has been set.

Inheritance hierarchy

System.Object
  Microsoft.Office.Server.ActivityFeed.ActivityPreferencePerType

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class ActivityPreferencePerType
'Usage
Dim instance As ActivityPreferencePerType
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class ActivityPreferencePerType

Remarks

ActivityPreferencesCollection gets and sets lists of ActivityPreferencePerType objects to identify those ActivityType objects that users want to see in their feeds.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

ActivityPreferencePerType members

Microsoft.Office.Server.ActivityFeed namespace