Condividi tramite


ActivityTypesCollection.Create Method

Creates an ActivityType object with the specified name, adds it to the collection, and returns it.

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

Syntax

'Declaration
Public Function Create ( _
    activityTypeName As String _
) As ActivityType
'Usage
Dim instance As ActivityTypesCollection
Dim activityTypeName As String
Dim returnValue As ActivityType

returnValue = instance.Create(activityTypeName)
public ActivityType Create(
    string activityTypeName
)

Parameters

  • activityTypeName
    Type: System.String

    The name of the ActivityType object to be created.

Return Value

Type: Microsoft.Office.Server.ActivityFeed.ActivityType

See Also

Reference

ActivityTypesCollection Class

ActivityTypesCollection Members

Microsoft.Office.Server.ActivityFeed Namespace