Asp中CreateObject对象汇总

ADO对象(太常用了):
Server.CreateObject("ADODB.Connection")
Server.CreateObject("ADODB.Command")
Server.CreateObject("ADODB.RecordSet")
Server.CreateObject("ADODB.Record")
Server.CreateObject("ADODB.Stream")

ASP支持的对象太多了,你可以自己写COM组件,下面是一些常使用的:
Server.CreateObject("Scripting.FileSystemObject")
Server.CreateObject("Scripting.Dictionary")? HashTable
Server.CreateXObject("Word.Application")?? //Server
ActiveXObject("Word.Application") //Client
Server.CreateObject("Excel.Application") //Server
ActiveXObject("Excel.Application") //Client
CreateObject("PowerPoint.Application")
Server.CreateObject("Microsoft.XMLHTTP")
Server.CreateObject("Microsoft.XMLDOM")
Server.CreateObject("MSXML2.XMLHTTP.4.0")
Server.CreateObject("WScript.Shell")
Server.CreateObject("wscript.network") //网络地址的
Server.CreateObject("MSWC.AdRotator")
CreateObject("Excel.Sheet")
MS FrontPage: oFP = CreateObject("FrontPage.Application")
MS Access: oAccess = CreateObject("Access.Application")
MS Graph: oGraph = CreateObject("MSGraph.Application")

下面是我们应该知道的:
CreateObject("Photoshop.Application")

关于SQL Server的
CreateObject("SQLDMO.SQLServer")
CreateObject("SQLDMO.Login")
CreateObject("SQLDMO.Backup")
CreateObject("SQLDMO.User")
Server.CreateObject("SQLDMO.BackupDevice")
Server.CreateObject("SQLDMO.Database")
Server.CreateObject("SQLDMO.Restore")


MSMQ的
Server.CreateObject("MSMQ.MSMQQueueInfo")
CreateObject("MSMQ.MSMQQuery")

全文索引的
Server.CreateObject("ixsso.Query")
Server.CreateObject("ixsso.Util")

邮件发送的组件:
Server.CreateObject("JMAIL.Message") // JMail
Server.CreateObject("CDONTS.NewMail") //CDONTS

下面一些是不太常见的对象:
AccPac Advantage Corporate:
oAccPac=CreateObject("ACCPAC.xapiSession")

文章来自: 本站原创
Tags:
评论: 0 | 查看次数: 8819