Udostępnij za pośrednictwem


IParamInfo.Attribute Property

Gets or sets a pointer to an eParamAttr value that specifies the type of an attribute parameter.

Namespace:  Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

Syntax

'Declaration
Property Attribute As eParamAttr
    Get
    Set
eParamAttr Attribute { get; set; }
property eParamAttr Attribute {
    eParamAttr get ();
    void set (eParamAttr value);
}
abstract Attribute : eParamAttr with get, set
function get Attribute () : eParamAttr
function set Attribute (value : eParamAttr)

Property Value

Type: Microsoft.VisualStudio.VsWizard.eParamAttr
A eParamAttr value

Remarks

If the parameter type returned by the Attribute property is eparamOutRetval, specify that the parameter should be the last parameter in the function.

Examples

// In this example, oInterface is the interface 
// containing the function and its parameters.

var iRetVal = 0; 
var oFunctions = oInterface.Functions;
var oFunction = oFunctions.Item(iFunction)
var oParameters = oFunction.Parameters; 
var cDISPPARAMS = oParameters.Count;
var oParameter = oParameters.Item(cDISPPARAMS);
   
   if (oParameter.Attribute == eparamOutRetval)
   {
      // retval must be last.
      iRetVal = cDISPPARAMS;
      cDISPPARAMS--;
   }

.NET Framework Security

See Also

Reference

IParamInfo Interface

Microsoft.VisualStudio.VsWizard Namespace