Поделиться через


IParamInfo.Attribute - свойство

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

Пространство имен:  Microsoft.VisualStudio.VsWizard
Сборка:  Microsoft.VisualStudio.VsWizard (в Microsoft.VisualStudio.VsWizard.dll)

Синтаксис

'Декларация
Property Attribute As eParamAttr
'Применение
Dim instance As IParamInfo
Dim value As eParamAttr

value = instance.Attribute

instance.Attribute = value
eParamAttr Attribute { get; set; }
property eParamAttr Attribute {
    eParamAttr get ();
    void set (eParamAttr value);
}
function get Attribute () : eParamAttr
function set Attribute (value : eParamAttr)

Значение свойства

Тип: Microsoft.VisualStudio.VsWizard.eParamAttr

A eParamAttr value

Заметки

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

Примеры

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

Разрешения

  • Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.

См. также

Ссылки

IParamInfo Интерфейс

IParamInfo - члены

Microsoft.VisualStudio.VsWizard - пространство имен