0

有人可以让我知道 Sharepoint 中的文档、内容和项目之间的区别吗

另外请让我知道如何获取文档的大小。例如,如果共享点服务器中有一个名为 a.doc 的文档,大小为 2KB。该文件的哪个属性返回大小。

我可以做的一种解决方法是我可以将它下载到机器上并获取大小。但我对此不感兴趣。

谢谢,拉贾斯。

4

2 回答 2

1

Item

An item is just a record with fields you like. Each item has ID, Title and many other fields. You can add Date, Choice, Calculated, User and many more different fields. A field is just a column you see when viewing items.

List items can have attachments. You can attach many items/documents to a single list item.

Document

When you have a document library, your document is also a list item. It's just when you open it, you open the document. When you try to create a new one, again it opens word/excel for you. When you save - bam, you have a new entry in your document library. The document library also has these fields (they are called properties in case of a document library) which you can edit using the edit form. You cannot have attachments for a document - a document is just a document.

Advantage of using a document library is that you can edit these document properties inside the document. You can also have a template for a specific document type. The document library can also be browsed using windows explorer.

于 2011-09-13T10:38:38.023 回答
0

这是 SharePoint 2010 中使用的所有术语的列表 - http://msdn.microsoft.com/en-us/library/ee556558%28office.14%29.aspx

要获取文档的大小,请使用以下命令:

//item is of type SPListItem
var size = item.File.Length;
于 2011-09-13T06:42:47.437 回答