Documents Methods

The Documents type exposes the following members.

Methods
  Name Description
Public method AddDocument
Add a document to an existing library.
Public method DeleteDocument
Permanantly removes a document from the site.
Public method GetDocumentInfo
Retrieve the DocumentInfo object for a given document.
Public method GetDocumentLibraryInfo
Get the API.Documents.DocumentLibraryInfo object of the Document Library associated with a given Document Part.
Public method GetDocumentLibraryInfoDirect
Get the API.Documents.DocumentLibraryInfo object of the specified Document Library. This direct approach does not require you have an associated content Part Id to retrieve the Library info, since document libraries may exist which are not explictly associating with a Documents Part.
Public method GetDocumentURL
Returns the URL for an uploaded document.
Public method GetLibaryDocuments
Returns info on every Document in a given library associated with a Documents part.
Public method GetLibaryDocumentsDirect
Returns info on every Document in a given library, accessing the library directly by its id. This direct approach does not require you have an associated content Part Id to retrieve the Library documents, since document libraries may exist which are not explictly associating with a Documents Part.
Public method UpdateDocument
Replace an existing document.
See Also