Compartir a través de


IDL Attributes, Add Method Wizard

Use this page of the Add Method Wizard to specify any interface definition language (IDL) settings for the method.

  • id
    Sets the numerical ID that identifies the method. See id in the MIDL Reference.

    This box is unavailable for custom interfaces and is not available for MFC dispinterfaces.

  • call_as
    Specifies the name of a remote method to which this local method can be mapped. See call_as in the MIDL Reference.

    Not available for MFC dispinterfaces.

  • helpcontext
    Specifies a context ID that lets the user view information about this method in the Help file. See helpcontext in the MIDL Reference.

    Not available for MFC dispinterfaces.

  • helpstring
    Specifies a character string that is used to describe the element to which it applies. By default, it is set to "method Method name." See helpstring in the MIDL Reference.

    Not available for MFC dispinterfaces.

  • Additional attributes
    Not available for MFC dispinterfaces.

    Attribute

    Description

    hidden

    Indicates that the method exists but should not be displayed in a user-oriented browser. See hidden in the MIDL Reference.

    source

    Indicates that a member of the method is a source of events. See source in the MIDL Reference.

    local

    Specifies to the MIDL compiler that the method is not remote. See local in the MIDL Reference.

    restricted

    Specifies that the method cannot be called arbitrarily. See restricted in the MIDL Reference.

    vararg

    Specifies that the method takes a variable number of arguments. To accomplish this, the last argument must be a safe array of VARIANT type that contains all the remaining arguments. See vararg in the MIDL Reference.

See Also

Tasks

Adding a Method (Visual C++)

Reference

Add Method Wizard