Interface IFollowing
An entry point to the social following APIs
Assembly: PnP.Core.dll
Syntax
public interface IFollowing : IDataModel<IFollowing>, IDataModelParent, IDataModelWithContext, ISupportModules<IFollowing>
Methods
Checks whether the specified user is following the current user.
Declaration
bool AmIFollowedBy(string accountName)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Returns
System.Boolean
True if the specified user follows the current user
|
Checks whether the specified user is following the current user.
Declaration
Task<bool> AmIFollowedByAsync(string accountName)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Returns
Task<System.Boolean>
True if the specified user follows the current user
|
Checks whether the current user is following the specified user.
Declaration
bool AmIFollowing(string accountName)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Returns
System.Boolean
True if the current user follows the specified user
|
Checks whether the current user is following the specified user.
Declaration
Task<bool> AmIFollowingAsync(string accountName)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Returns
Task<System.Boolean>
True if the current user follows the specified user
|
Makes the current user start following a user, document, site, or tag.
Declaration
SocialFollowResult Follow(FollowData data)
Parameters
Returns
Makes the current user start following a user, document, site, or tag.
Declaration
Task<SocialFollowResult> FollowAsync(FollowData data)
Parameters
Returns
Gets users, documents, sites, and tags that the current user is following.
Declaration
IList<ISocialActor> FollowedByMe(SocialActorTypes types)
Parameters
SocialActorTypes
types
The actor type to include. You can include many actory using bitwise operatoins. I.e. to include document and site types use SocialActorTypes.Documents | SocialActorTypes.Sites
|
Returns
Gets users, documents, sites, and tags that the current user is following.
Declaration
Task<IList<ISocialActor>> FollowedByMeAsync(SocialActorTypes types)
Parameters
SocialActorTypes
types
The actor type to include. You can include many actory using bitwise operatoins. I.e. to include document and site types use SocialActorTypes.Documents | SocialActorTypes.Sites
|
Returns
Gets the count of users, documents, sites, and tags that the current user is following.
Declaration
int FollowedByMeCount(SocialActorTypes types)
Parameters
SocialActorTypes
types
The actor type to include. You can include many actory using bitwise operatoins. I.e. to include document and site types use SocialActorTypes.Documents | SocialActorTypes.Sites
|
Returns
System.Int32
The number of followed items
|
Gets the count of users, documents, sites, and tags that the current user is following.
Declaration
Task<int> FollowedByMeCountAsync(SocialActorTypes types)
Parameters
SocialActorTypes
types
The actor type to include. You can include many actory using bitwise operatoins. I.e. to include document and site types use SocialActorTypes.Documents | SocialActorTypes.Sites
|
Returns
Task<System.Int32>
The number of followed items
|
Gets the people who are following the specified user.
Declaration
IList<IPersonProperties> GetFollowersFor(string accountName, params Expression<Func<IPersonProperties, object>>[] selectors)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Expression<Func<IPersonProperties, System.Object>>[]
selectors
Specific properties to return
|
Returns
Gets the people who are following the specified user.
Declaration
Task<IList<IPersonProperties>> GetFollowersForAsync(string accountName, params Expression<Func<IPersonProperties, object>>[] selectors)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Expression<Func<IPersonProperties, System.Object>>[]
selectors
Specific properties to return
|
Returns
Gets following information for the current user
Declaration
IFollowingInfo GetFollowingInfo()
Returns
Gets following information for the current user
Declaration
Task<IFollowingInfo> GetFollowingInfoAsync()
Returns
Gets the people who the specified user is following.
Declaration
IList<IPersonProperties> GetPeopleFollowedBy(string accountName, params Expression<Func<IPersonProperties, object>>[] selectors)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Expression<Func<IPersonProperties, System.Object>>[]
selectors
Specific properties to return
|
Returns
Gets the people who the specified user is following.
Declaration
Task<IList<IPersonProperties>> GetPeopleFollowedByAsync(string accountName, params Expression<Func<IPersonProperties, object>>[] selectors)
Parameters
System.String
accountName
The account name of the user, i.e. "i:0#.f|membership|admin@m365x790252.onmicrosoft.com"
|
Expression<Func<IPersonProperties, System.Object>>[]
selectors
Specific properties to return
|
Returns
Indicates whether the current user is following a specified user, document, site, or tag.
Declaration
bool IsFollowed(FollowData data)
Parameters
Returns
System.Boolean
True if the current user is following a specified user, document, site, or tag.
|
Indicates whether the current user is following a specified user, document, site, or tag.
Declaration
Task<bool> IsFollowedAsync(FollowData data)
Parameters
Returns
Task<System.Boolean>
True if the current user is following a specified user, document, site, or tag.
|
Gets the users who are following the current user.
Declaration
IList<ISocialActor> MyFollowers()
Returns
Gets the users who are following the current user.
Declaration
Task<IList<ISocialActor>> MyFollowersAsync()
Returns
Gets users who the current user might want to follow.
Declaration
IList<ISocialActor> MySuggestions()
Returns
Gets users who the current user might want to follow.
Declaration
Task<IList<ISocialActor>> MySuggestionsAsync()
Returns
Makes the current user stop following a user, document, site, or tag.
Declaration
void StopFollowing(FollowData data)
Parameters
Makes the current user stop following a user, document, site, or tag.
Declaration
Task StopFollowingAsync(FollowData data)
Parameters
Returns
Extension Methods