Difference between SPFile and PublishingPage class
What are the difference between SPFile class and PublishingPage Class? I am trying to manipulate a SharePoint Page and开发者_如何转开发 I see that both SPFile and PublishingPage classes can be used and the only difference I see if PublishingPage is used for aspx file and SpFile can be used for anyfiles in a SharePoint site. I also see that there are few extra properties like ContactEmail etc in PublishingPage.
Is there anything important I am missing here?
You pretty much answered your own question. the PublishingPage class is used to represent pages authored by end-users in a publishing site. It has information about the page layout used, the content type upon which the page layout was based, when the page should be published, and so on. The SPFile object is used to represent any file in a library.
精彩评论