Package com.ms.com Previous
Previous
Contents
Contents
Index
Index
Next
Next

Interface NoAutoScripting

public interface NoAutoScripting {
}

Using the NoAutoScripting interface in the implements clause of a class definition prevents the virtual machine (VM) from including its own IDispatch implementation for that class. For example:


//A.Func is exposed to scripting engines such as 
//VB or VBScript, which operate on IDispatch objects.

class A
{
  public void func() {
    ... 
  }
}

//B.Func is not exposed to scripting engines.

class B implements com.ms.com.AutoNoScripting
{
  public void func() {
    ... 
  }
}


© 1997 Microsoft Corporation. All rights reserved. Legal Notices.