Share via


ExpandAttribute Class

Definition

Represents an Attribute that can be placed on a property or a class correlate to OData's $expand query option settings.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=true)]
public sealed class ExpandAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=true)>]
type ExpandAttribute = class
    inherit Attribute
Public NotInheritable Class ExpandAttribute
Inherits Attribute
Inheritance
ExpandAttribute
Attributes

Constructors

ExpandAttribute()

Initializes a new instance of the ExpandAttribute class.

ExpandAttribute(String[])

Initializes a new instance of the ExpandAttribute class with the name of allowed expand properties.

Properties

ExpandConfigurations

Gets or sets the ExpandConfiguration of navigation properties.

ExpandType

Gets or sets the ExpandType of navigation properties.

MaxDepth

Gets or sets the maximum expand depth of navigation properties.

Applies to