Method Attributes
The following attributes apply to the methods in a class, coclass, or interface.
Attribute | Description |
---|---|
bindable | Indicates that the property supports data binding. |
call_as | Enables a nonremotable function to be mapped to a remote function. |
custom | Lets you define your own attribute. |
db_column | Binds a specified column to the rowset. |
db_command | Creates an OLE DB command. |
db_param | Associates the specified member variable with an input or output parameter and delimits the variable. |
db_source | Creates a connection to a data source. |
db_table | Opens an OLE DB table. |
defaultbind | Indicates the single, bindable property that best represents the object. |
defaultcollelem | Used for Visual Basic code optimization. |
displaybind | Indicates a property that should be displayed to the user as bindable. |
helpcontext | Specifies a context ID that lets the user view information about this element in the Help file. |
helpfile | Sets the name of the Help file for a type library. |
helpstring | Specifies a character string that is used to describe the element to which it applies. |
helpstringcontext | Specifies the ID of a help topic in an .hlp or .chm file. |
helpstringdll | Specifies the name of the DLL to use to perform document string lookup (localization). |
hidden | Indicates that the item exists but should not be displayed in a user-oriented browser. |
id | Specifies a DISPID for a member function (either a property or a method, in an interface or dispinterface). |
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. |
local | Allows you to use the MIDL compiler as a header generator when used in the interface header. When used in an individual function, designates a local procedure for which no stubs are generated. |
nonbrowsable | Indicates that an interface member should not be displayed in a property browser. |
propget | Specifies a property accessor function. |
propput | Specifies a property-setting function. |
propputref | Specifies a property-setting function that uses a reference instead of a value. |
ptr | Designates a pointer as a full pointer. |
range | Specifies a range of allowable values for arguments or fields whose values are set at run time. |
requestedit | Indicates that the property supports the OnRequestEdit notification. |
restricted | Specifies that a member of a module, interface, or dispinterface cannot be called arbitrarily. |
satype | Specifies the data type of the SAFEARRAY structure. |
source | Specifies the control's source interfaces for connection points on a class. On a property or method, the source attribute indicates that the member returns an object or VARIANT that is a source of events. |
synchronize | Synchronizes access to the target method. |
vararg | Specifies that the function take a variable number of arguments. |