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
)
參數
- possibleFollowerAccountName
類型:System.String
- possibleFolloweeAccountName
類型:System.String
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<Boolean>