Use your own namespace specification WebPart name

xiaoxiao2021-03-06  73

See Microsoft

WebPart

of

Namespace

Very standard, such as

Microsoft.SharePoint.WebPart

. So how do you use your own development?

WebPart

Is there any name for this specification?

1. Create a WebPart project

In creating a WebPart project, when the pop-up dialog requests the name of the project, you must realize that this time you want to use the name of the specification. For example, you want to create a WebAPRT called Readbbs, you can name your project like this. : CompanyName.webpart.readbbs, so that the system will default to create a namespace: CompanyName.Webpart.Readbbs

2, the default code file name

The system default generated code program name is generally WebPart1.cs, WebArt1.dwp, modify the file names of these files, such as CompanyName.WebPart.Readbbs.wpreadbbs.cs, wpreadbbs.dwp

3, modify the installation file manifest.xml

转载请注明原文地址:https://www.9cbs.com/read-108644.html

New Post(0)