Custom Server API References > Mercury.QTP.Slv.CustomServer Namespace > RunInterfaceAttribute Class
This attribute, applied to an interface, indicates that it is the Run Interface of the custom server class.

Syntax

Visual Basic (Declaration) 
Public Class RunInterfaceAttribute 
   Inherits Attribute
C# 
public class RunInterfaceAttribute : Attribute 

Remarks

  • In the interface that you tag with this attribute, implement methods that perform test object operations on the control.
  • Each method you design must have the same signature as the test object operation that it implements (as defined in the test object configuration file).
  • Tag each one of the methods that you design with the Microsoft Silverlight ScriptableMember attribute.
  • Implement methods for any new test object operations you defined for your test object class, or if you want to override the operation implementation inherited from the base class.
  • A custom server class cannot implement more than on interface tagged with RunInterfaceAttribute.

Inheritance Hierarchy

System.Object
   System.Attribute
      Mercury.QTP.Slv.CustomServer.RunInterfaceAttribute

Public Constructors

 NameDescription
Public ConstructorRunInterfaceAttribute ConstructorDefault constructor.  
Top

Public Properties

 NameDescription
Public PropertyTypeId (Inherited fromSystem.Attribute)
Top

Public Methods

 NameDescription
Public MethodEquals (Inherited fromSystem.Attribute)
Public MethodGetHashCode (Inherited fromSystem.Attribute)
Public MethodIsDefaultAttribute (Inherited fromSystem.Attribute)
Public MethodMatch (Inherited fromSystem.Attribute)
Top

See Also