共用方式為


PeopleManager.IsFollowing 方法

檢查第一個指定的使用者是否追蹤第二個指定的使用者。

命名空間:  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 Shared Function IsFollowing ( _
    context As ClientRuntimeContext, _
    possibleFollowerAccountName As String, _
    possibleFolloweeAccountName As String _
) As ClientResult(Of Boolean)
'用途
Dim context As ClientRuntimeContext
Dim possibleFollowerAccountName As String
Dim possibleFolloweeAccountName As String
Dim returnValue As ClientResult(Of Boolean)

returnValue = PeopleManager.IsFollowing(context, _
    possibleFollowerAccountName, possibleFolloweeAccountName)
public static ClientResult<bool> IsFollowing(
    ClientRuntimeContext context,
    string possibleFollowerAccountName,
    string possibleFolloweeAccountName
)

參數

傳回值

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

請參閱

參照

PeopleManager 類別

PeopleManager 成員

Microsoft.SharePoint.Client.UserProfiles 命名空間