共用方式為


ActivityManager.CurrentUserName Property

Gets a string representing the current user’s name.

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

Syntax

'Declaration
Public ReadOnly Property CurrentUserName As String
    Get
'Usage
Dim instance As ActivityManager
Dim value As String

value = instance.CurrentUserName
public string CurrentUserName { get; }

Property Value

Type: System.String

See Also

Reference

ActivityManager Class

ActivityManager Members

Microsoft.Office.Server.ActivityFeed Namespace