Using eventhandler to change the folder's content type
来源:互联网 发布:windows故障转移集群 编辑:程序博客网 时间:2024/06/10 05:09
In Sharepoint 2010, you can not set different content type content type for different folders in document library through GUI. Luckily, you can use Event handler to make it.
The following code implement that if you create folder whose name contains "Audio", its content type will be changed to Audio.
So before doing this, please make sure that your parent document library has "Audio" content type.
- Using eventhandler to change the folder's content type
- How to change the name of logfile dynamically using log4j
- How to change the ClearCase view's owner and group
- How to change the Windows Messenger(MSN)'s personal information using C++ - 用C++如何设置Windows Messenger(MSN)的个人信息
- cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content t
- Element 'beans' cannot have character [children], because the type's content type is element-only.
- Element 'beans' cannot have character [children], because the type's content type is element-only
- cvc-complex-type.2.3: Element 'list' cannot have character [children], because the type's content ty
- Element 'beans' cannot have character [children], because the type's content type is element-only
- Element 'property' cannot have character [children], because the type's content type is element-only
- cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content
- cvc-complex-type.2.3: Element 'servlet' cannot have character [children], because the type's content
- Using PropertyInfo to find out the property type
- Change the content of the file
- how to change the machine code to ASM by Using OllyDbg
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID
- (JRuby) Performance Tuning
- Internet Standard Subnetting Procedure RFC 950
- ORA-000060: Deadlock detected: deadlock引起数据库挂死
- A simple sample of Interactive Surface of Revolution
- 其实不是没个人都可以隐身
- Using eventhandler to change the folder's content type
- FAT32解析示例
- 国芯刷机程序选择及刷机失败解答
- C语言实现毫秒级定时
- 有关线程与进程的基础与理解
- 80x86汇编_金手指鼠标画笔演示程序
- 新年快乐
- 2010-02-17
- 如何安装OpenCV2.0