Obsolete DotNetModule Properties

The following properties are now obsolete. National Instruments supports these properties but recommends that you update files to reflect these changes to ensure compatibility with future versions of TestStand.

Although you can use the DotNetModule.ClassReference , DotNetModule.ConstructorParameters , DotNetModule.ConstructorPrototype , DotNetModule.CreateObject , DotNetModule.DisposeObject , DotNetModule.IsConstructorPrototypeIncompatible , DotNetModule.MemberFlags , DotNetModule.MemberHelpString , DotNetModule.MemberName , DotNetModule.MemberType , DotNetModule.Parameters , DotNetModule.RemoteHost , DotNetModule.SpecifyHostByExpression , and DotNetModule.UnmappedConstructorArgumentValues properties, they might not return exactly the same results as in previous versions of TestStand because of the significant changes made to the underlying DotNetModule data structure and architecture of the .NET Adapter in TestStand 2010. Most of the common usages of these properties work as expected. However, if you use these properties to modify or specify a DotNetModule programmatically, you might need to modify the various settings on the DotNetModule in a different order than in previous versions of TestStand to obtain the expected result.

National Instruments recommends specifying the module settings in the following order:

  • DotNetModule.SetAssembly
  • DotNetModule.ClassName
  • DotNetModule.CreateObject
  • DotNetModule.SpecifyHostByExpression
  • DotNetModule.RemoteHost
  • DotNetModule.ClassReference
  • DotNetModule.DisposeObject
  • DotNetModule.MemberName
  • DotNetModule.MemberType
  • DotNetModule.MemberFlags
  • DotNetModule.LoadConstructorPrototypeFromMetadataToken
  • DotNetModule.LoadPrototypeFromMetadataToken
  • DotNetModule.ConstructorParameters
  • DotNetModule.Parameters

Consider using the current API for specifying .NET code modules by adding DotNetCalls to the DotNetModule.Calls collection and using the DotNetCall interface to specify the members you want to call.

Obsolete Property Preferred Property or Method
ClassReference Create a Use Existing Object or constructor call as the first call in the module and specify a value for the first parameter instead of using this property.
Note

Starting with TestStand 2024 Q4, 'Create Remote Object' is no longer supported.

ConstructorIndex DotNetCall.LoadPrototypeFromSignature method
ConstructorParameters DotNetCall.Parameters property
ConstructorPrototype DotNetCall.Signature property
CreateObject DotNetModule.Calls collection and DotNetCall.LoadPrototypeFromSignature method
DisposeObject DotNetParameter.DisposeObject property
IsConstructorPrototypeIncompatible DotNetCall.IsPrototypeIncompatible property
MemberFlags DotNetCall.MemberFlags property
MemberHelpString DotNetCall.MemberHelpString property
MemberIndex DotNetCall.LoadPrototypeFromSignature method
MemberName DotNetCall.MemberName property
MemberType DotNetCall.MemberType property
NameOfMethodToCreate DotNetCall.MemberName property and DotNetCall.CreateCode method
Parameters DotNetCall.Parameters property
RemoteHost DotNetModule.Calls collection and DotNetCall.LoadPrototypeFromSignature method
SpecifyHostByExpression DotNetModule.Calls collection and DotNetCall.LoadPrototypeFromSignature method
UnmappedConstructorArgumentValues DotNetCall.UnmappedArgumentValues property