Share via


Parameter Element for Attribute (ProxyGen)

Represents a positional parameter of an attribute's constructor.

<Parameter value = "Value of parameter">
  <Type>...<Type>
</Parameter>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

value

Required xs:string attribute.

The value of the parameter.

Child Elements

Element

Description

Type

Required ArrayTypeReference_Type attribute.

Describes the type of the parameter. The type can be an array.

Parent Elements

Element

Description

Attribute

Represents an attribute of a type, member, or parameter.

Example

The following example demonstrates a Parameter element that represents the parameter of an attribute that is applied to a property named FileName.

<Property originalName="FileName" isExcluded="false" dispId="1">
  <Type>
    <ExternalTypeReference isInterface="false" type="System.String" />
  </Type>
  <Get isExcluded="false">
    <Attribute>
      <Type>
        <ExternalTypeReference isInterface="false" type="System.Runtime.InteropServices.MarshalAsAttribute" />
      </Type>
      <Parameter value="BStr">
        <Type>
          <ExternalTypeReference isInterface="false" type="System.Runtime.InteropServices.UnmanagedType" />
        </Type>
      </Parameter>
    </Attribute>
  </Get>
</Property>

Element Information

Namespace

https://schemas.microsoft.com/vsta/2008/01/ProxyGenDescriptor

Schema name

ProxyGen Descriptor

Validation file

ProxyGenDescriptorv2.xsd

Can be empty

No

See Also

Concepts

ProxyGen Descriptor Schema Reference

Creating Proxies

Defining Entry Points and Other Proxy Changes