SocialFeed.Attributes propriedade
Obtém um conjunto de atributos que se aplicam ao feed.
Namespace: Microsoft.SharePoint.Client.Social
Assemblies: Microsoft.SharePoint.Client.UserProfiles.Silverlight (em Microsoft.SharePoint.Client.UserProfiles.Silverlight.dll); Microsoft.SharePoint.Client.UserProfiles.Phone (em Microsoft.SharePoint.Client.UserProfiles.Phone.dll) Microsoft.SharePoint.Client.UserProfiles (em Microsoft.SharePoint.Client.UserProfiles.dll)
Sintaxe
'Declaração
Public ReadOnly Property Attributes As SocialFeedAttributes
Get
'Uso
Dim instance As SocialFeed
Dim value As SocialFeedAttributes
value = instance.Attributes
public SocialFeedAttributes Attributes { get; }
Valor de propriedade
Tipo: Microsoft.SharePoint.Client.Social.SocialFeedAttributes
Exemplos
O código a seguir itera os threads no feed. Ele obtém o identificador de segmento e o texto da postagem raiz e verifica se cada thread tem o atributo CanReply .
Consulte How to: Learn to read and write to the social feed by using the .NET client object model e How to: Create and delete posts and retrieve the social feed by using the .NET client object model para obter exemplos de código completo que funcionam com feeds.
for (int i = 0; i < feed.Value.Threads.Length; i++)
{
SocialThread thread = feed.Value.Threads[i];
string threadId = thread.Id;
string postText = thread.RootPost.Text;
if (thread.Attributes.HasFlag(SocialThreadAttributes.CanReply))
{
Console.WriteLine(("\t" + threadId + " " + postText);
}
}