Compartir a través de


de la propiedad SocialFeed.Threads

Obtiene los hilos que conforman la fuente.

Espacio de nombres:  Microsoft.SharePoint.Client.Social
Ensamblados:   Microsoft.SharePoint.Client.UserProfiles.Silverlight (en Microsoft.SharePoint.Client.UserProfiles.Silverlight.dll);  Microsoft.SharePoint.Client.UserProfiles.Phone (en Microsoft.SharePoint.Client.UserProfiles.Phone.dll)  Microsoft.SharePoint.Client.UserProfiles (en Microsoft.SharePoint.Client.UserProfiles.dll)

Sintaxis

'Declaración
Public ReadOnly Property Threads As SocialThread()
    Get
'Uso
Dim instance As SocialFeed
Dim value As SocialThread()

value = instance.Threads
public SocialThread[] Threads { get; }

Valor de propiedad

Tipo: []

Ejemplos

El código siguiente recorre los subprocesos de la fuente. Obtiene el identificador de subproceso y el texto de la entrada de raíz y comprueba si cada subproceso tiene el atributo CanReply .

Consulte How to: Learn to read and write to the social feed by using the .NET client object model y How to: Create and delete posts and retrieve the social feed by using the .NET client object model para obtener ejemplos de código completo que funcionan con fuentes.

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);
    }
}

Vea también

Referencia

clase SocialFeed

Miembros SocialFeed

Espacio de nombres Microsoft.SharePoint.Client.Social