Cómo obtener los archivos solo por nombre de archivo de Sharepoint
Frecuentes
Visto 2,040 veces
1
Currently I am getting the list of documents as following:
private ClientContext _clientContext;
var oList = _clientContext.Web.Lists.GetByTitle(SERVERURL);
var oQuery = new CamlQuery();
var fileList = oList.GetItems(oQuery);
_clientContext.Load(fileList);
_clientContext.ExecuteQuery();
It gives me all the files that is on the server.
But what if I know the files that I want to open from SharePoint and Read? I don't want to load all the files and then loop through them , instead want to get that particular file from SharePoint.
1 Respuestas
2
Puede usar su CamlQuery
:
oQuery.Query =
@"<Where>
<Eq>
<FieldRef Name='Title'/><Value Type='Text'>DocTitle</Value>
</Eq>
</Where>";
Para más detalles leer Query Schema.
respondido 15 nov., 13:10
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas c# .net sharepoint sharepoint-2010 or haz tu propia pregunta.