Share via


ReturnValueAttribute Element (ProxyGen)

Represents an attribute that is applied to the return value of a member or delegate type.

<ReturnValueAttribute>
  <NullParameter>...</NullParameter>
  <Parameter>...</Parameter>
  <NamedNullParameter>...</NamedNullParameter>
  <NamedParameter>...</NamedParameter>
  <Type>...</Type>
</ReturnValueAttribute>

Attribute_Type

Attributes and Elements

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

Attributes

None.

Child Elements

Element

Description

NamedNullParameter

Optional element.

Represents a named parameter of the attribute's constructor that is passed the value null. This element must be located after the Parameter and NullParameter elements.

NamedParameter

Optional element.

Represents a named parameter of the attribute's constructor. This element must be located after the Parameter and NullParameter elements.

NullParameter

Optional element.

Represents a positional parameter of the attribute's constructor that is passed the value null. This element must be located before the NamedParameter and NamedNullParameter elements.

Parameter

Optional element.

Represents a positional parameter of the attribute's constructor. This element must be located before the NamedParameter and NamedNullParameter elements.

Type

Required TypeReference_Type element.

Describes the type of the attribute. This element can be only the first or last child element.

Parent Elements

Element

Description

Delegate Element

Represents a proxy delegate for a managed delegate that is defined in a parent class.

-or-

Represents a proxy delegate that handles a COM event.

Delegate Element for ManagedLibrary

Represents a proxy delegate for a managed delegate that is not defined in a parent class.

Event Element for Class for COMLibrary

Represents an event that is defined in a proxy type for a COM type.

Event Element for Class for ManagedLibrary

Represents an event that is defined in a proxy type for a managed type.

Method Element for Class for COMLibrary

Represents a method that is defined in a proxy type for a COM type.

Method Element for Class for ManagedLibrary

Represents a method that is defined in a proxy type for a managed type.

Property Element for Class for COMLibrary

Represents a property that is defined in a proxy type for a COM type.

Property Element for Class for ManagedLibrary

Represents a property that is defined in a proxy type for a managed type.

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