IParamInfo.Attribute (Propiedad)

Obtiene o establece un puntero a un valor de eParamAttr que especifica el tipo de un parámetro del atributo.

Espacio de nombres:  Microsoft.VisualStudio.VsWizard
Ensamblado:  Microsoft.VisualStudio.VsWizard (en Microsoft.VisualStudio.VsWizard.dll)

Sintaxis

'Declaración
Property Attribute As eParamAttr
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)

Valor de propiedad

Tipo: Microsoft.VisualStudio.VsWizard.eParamAttr
Un valor de tipo eParamAttr.

Comentarios

Si el tipo de parámetro devuelta por la propiedad del atributo es eparamOutRetval, especifica que el parámetro debe ser el último parámetro de la función.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

IParamInfo Interfaz

Microsoft.VisualStudio.VsWizard (Espacio de nombres)