Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回所有装载到该域中的启动类。
Public Function GetStartClassInstances() As Object()
public object[] GetStartClassInstances()
服务器启动时所构造的所有启动类的数组。如果没有启动类,此数组的长度为零。
有关用户定义的启动类的详细信息,请参见用户定义的启动类。
以下示例演示了如何查找启动类:
void FindStartClass( ServerContext sc, string name ) { object[] startClasses = sc.GetStartClassInstances(); foreach( object obj in startClasses ) { if( obj is MyClass ) { // Execute some code..... } } }