Share via


Parameter Attributes

 

The latest version of this topic can be found at Parameter Attributes.

The following attributes apply to parameters of a method in a class or interface.

Attribute Description
custom Lets you define your own attribute.
defaultvalue Allows specification of a default value for a typed optional parameter.
first_is Specifies the index of the first array element to be transmitted.
iid_is Specifies the index of the first array element to be transmitted.
immediatebind Indicates that the database will be notified immediately of all changes to a property of a data-bound object.
in Indicates that a parameter is to be passed from the calling procedure to the called procedure.
last_is Specifies the index of the last array element to be transmitted.
lcid Lets you pass a locale identifier to a function.
length_is Specifies the number of array elements to be transmitted.
max_is Designates the maximum value for a valid array index.
optional Specifies an optional parameter for a member function.
out Identifies pointer parameters that are returned from the called procedure to the calling procedure (from the server to the client).
range Specifies a range of allowable values for arguments or fields whose values are set at run time.
ref Identifies a reference pointer.
retval Designates the parameter that receives the return value of the member.
satype Specifies the data type of the SAFEARRAY structure.
size_is Specifies the size of memory allocated for sized pointers, sized pointers to sized pointers, and single- or multidimensional arrays.
unique Specifies a unique pointer.

See Also

Attributes by Usage