다음을 통해 공유


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