Share via


IParamInfo.Attribute Property

Definition

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

public:
 property Microsoft::VisualStudio::VsWizard::eParamAttr Attribute { Microsoft::VisualStudio::VsWizard::eParamAttr get(); void set(Microsoft::VisualStudio::VsWizard::eParamAttr value); };
public:
 property Microsoft::VisualStudio::VsWizard::eParamAttr Attribute { Microsoft::VisualStudio::VsWizard::eParamAttr get(); void set(Microsoft::VisualStudio::VsWizard::eParamAttr value); };
[System.Runtime.InteropServices.DispId(1610743816)]
public Microsoft.VisualStudio.VsWizard.eParamAttr Attribute { [System.Runtime.InteropServices.DispId(1610743816)] get; [System.Runtime.InteropServices.DispId(1610743816)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FRestricted)] set; }
[<System.Runtime.InteropServices.DispId(1610743816)>]
[<get: System.Runtime.InteropServices.DispId(1610743816)>]
[<set: System.Runtime.InteropServices.DispId(1610743816)>]
[<set: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FRestricted)>]
member this.Attribute : Microsoft.VisualStudio.VsWizard.eParamAttr with get, set
Public Property Attribute As eParamAttr

Property Value

A eParamAttr value

Attributes

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--;  
   }  

Remarks

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

Applies to