Microsoft SDK for Java

NoAutoScripting Interface

When used in the implements clause of a class definition, the NoAutoScripting interface of the com.ms.com package prevents the Microsoft VM from including its own IDispatch implementation for the class.

public interface NoAutoScripting
{
}

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.NoAutoScripting
{
  public void func() {
    ...
  }
}

See Also

Compiler Directives Reference

© 1999 Microsoft Corporation. All rights reserved. Terms of use.