共用方式為


PeopleManager.GetUserProfilePropertyFor 方法

取得所指定的使用者指定的使用者設定檔屬性。

命名空間:  Microsoft.SharePoint.Client.UserProfiles
組件:   Microsoft.SharePoint.Client.UserProfiles.Silverlight (在 Microsoft.SharePoint.Client.UserProfiles.Silverlight.dll 中);  Microsoft.SharePoint.Client.UserProfiles.Phone (在 Microsoft.SharePoint.Client.UserProfiles.Phone.dll 中)  Microsoft.SharePoint.Client.UserProfiles (在 Microsoft.SharePoint.Client.UserProfiles.dll 中)

語法

'宣告
Public Function GetUserProfilePropertyFor ( _
    accountName As String, _
    propertyName As String _
) As ClientResult(Of String)
'用途
Dim instance As PeopleManager
Dim accountName As String
Dim propertyName As String
Dim returnValue As ClientResult(Of String)

returnValue = instance.GetUserProfilePropertyFor(accountName, _
    propertyName)
public ClientResult<string> GetUserProfilePropertyFor(
    string accountName,
    string propertyName
)

參數

傳回值

類型:Microsoft.SharePoint.Client.ClientResult<String>

請參閱

參照

PeopleManager 類別

PeopleManager 成員

Microsoft.SharePoint.Client.UserProfiles 命名空間