Compartilhar via


UserProfileManager.GetUserProfile method (Boolean)

Obtém o objeto UserProfile do usuário atual ou cria um, se o objeto UserProfile ainda não existir.

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

Syntax

'Declaração
Public Function GetUserProfile ( _
    bCreateIfNotExist As Boolean _
) As UserProfile
'Uso
Dim instance As UserProfileManager
Dim bCreateIfNotExist As Boolean
Dim returnValue As UserProfile

returnValue = instance.GetUserProfile(bCreateIfNotExist)
public UserProfile GetUserProfile(
    bool bCreateIfNotExist
)

Parâmetros

  • bCreateIfNotExist
    Type: System.Boolean

    True se um perfil de usuário é criado porque ela ainda não existir no banco de dados de perfil de usuário; Caso contrário, false.

Valor retornado

Type: Microsoft.Office.Server.UserProfiles.UserProfile
que representa o perfil de usuário do usuário atual.

Ver também

Referência

UserProfileManager class

UserProfileManager members

GetUserProfile overload

Microsoft.Office.Server.UserProfiles namespace