Share via


ActivityPreferencesCollection.Create method

Creates a new ActivityPreference object for the ActivityType object with the specified identifier and returns it.

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

Syntax

'Declaration
Public Function Create ( _
    activityTypeId As Long _
) As ActivityPreference
'Usage
Dim instance As ActivityPreferencesCollection
Dim activityTypeId As Long
Dim returnValue As ActivityPreference

returnValue = instance.Create(activityTypeId)
public ActivityPreference Create(
    long activityTypeId
)

Parameters

  • activityTypeId
    Type: System.Int64

    The identifier of the ActivityType for which the preference is to be created.

Return value

Type: Microsoft.Office.Server.ActivityFeed.ActivityPreference

See also

Reference

ActivityPreferencesCollection class

ActivityPreferencesCollection members

Microsoft.Office.Server.ActivityFeed namespace