Class IncludeInApiVersionAttribute
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class IncludeInApiVersionAttribute : Attribute
Constructors
View SourceIncludeInApiVersionAttribute(Int32, Int32)
Initializes a new instance of the IncludeInApiVersionAttribute class. Specifies that the property should be included in the API response if the API version falls within the specified bounds.
Declaration
public IncludeInApiVersionAttribute(int minVersion = -1, int maxVersion = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minVersion | The minimum API version (inclusive) for which the property should be included. |
System.Int32 | maxVersion | The maximum API version (inclusive) for which the property should be included. |
Properties
View SourceMaxVersion
Declaration
public int? MaxVersion { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MinVersion
Declaration
public int? MinVersion { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |