Defining a Parameter

Meta Data Services Programming

Meta Data Services Programming

Defining a Parameter

Parameter definitions specify a parameter that is attached to a method. With parameter definitions, you can support an ordered collection of parameters that a method uses.

To define a parameter, use the IMethodDef and IParameterDef interfaces for COM programs, or use the MethodDef or ParameterDef objects for Automation programs.

The IMethodDef interface provides a way to define an ordered list of parameters for that method. IMethodDef is the default interface of the CMethodDef object that the IInterfaceDef::CreateMethodDef method returns.

The IParameterDef interface enables you to define in detail each parameter of a method.

These two interfaces, along with the relationships to other classes and interfaces, are shown in the following figure.

Parameter definitions are stored in a table in the repository database called RTblParameterDef.

For more information about model graphs and conventions, see the Microsoft® SQL Server™ 2000 Meta Data Services Software Development Kit (SDK).

See Also

Defining Methods

IMethodDef Interface

IParameterDef Interface

RtblParameterDef SQL Table

Meta Data Services SDK