Raghu's SharePoint Column : SharePoint - My Lifeline!!

Raghu's SharePoint Column

Custom template parameter name for Item Templates

Recently i thought of creating a ItemTemplates so that the dev effort during the development reduces drastically if someone is new to the project or the technology. A new developer just need to create a new item using the custom item templates.


Before getting into the deep on how to create custom item templates for visual studio. Please go through the list of reserverd template parameter names, whic will help developer to understand the naming conventions used for item templates.
All the template parameters are case sensitive
Reserved Template Parameters
The following table lists the reserved template parameters that can be used by any template.
1. clrversion
Current version of the common language runtime (CLR).
2. GUID [1-10]
A GUID used to replace the project GUID in a project file.
You can specify up to 10 unique GUIDs (for example, guid1).
3. itemname
The name provided by the user in the Add New Item dialogbox.
4. machinename
The current computer name (for example, Computer01).
5. projectname
The name provided by the user in the New Project dialog box.
6. registeredorganization
The registry key value from HKLM\Software\Microsoft
\WindowsNT\CurrentVersion\RegisteredOrganization.
7. rootnamespace
The root namespace of the current project. This parameter is
used to replace the namespace in an item being added to aproject.
8. safeitemname
The name provided by the user in the Add New Item dialogbox,
with all unsafe characters and spaces removed.
9. safeprojectname
The name provided by the user in the New Project dialog box,
with all unsafe characters and spaces removed.
10. time
The current time in the format DD/MM/YYYY 00:00:00.
11. userdomain
The current user domain.
12. username
The current user name.
13. year
The current year in the format YYYY.
 
Comments

No comments yet.

Leave a Reply
*

Protected by WP Anti Spam