IParamInfo.Attribute 属性

获取或设置指定特性参数类型的 eParamAttr 值的指针。

命名空间:  Microsoft.VisualStudio.VsWizard
程序集:  Microsoft.VisualStudio.VsWizard(在 Microsoft.VisualStudio.VsWizard.dll 中)

语法

声明
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)

属性值

类型:Microsoft.VisualStudio.VsWizard.eParamAttr
一个 eParamAttr 值。

备注

如果参数类型由特性 eparamOutRetval属性返回一,指定参数应是在函数的最后一个参数。

示例

// 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 安全性

请参阅

参考

IParamInfo 接口

Microsoft.VisualStudio.VsWizard 命名空间