Class RestAttribute
Specifies that the associated element is intended to be used in REST API operations. This attribute can be applied to methods, parameters, or return values.
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Parameter|AttributeTargets.ReturnValue, Inherited = false)]
public class RestAttribute : Attribute
- Inheritance
-
RestAttribute
- Inherited Members
- Extension Methods
Constructors
RestAttribute()
public RestAttribute()
Properties
Ignore
Gets or sets a value indicating whether the REST element should be ignored.
public bool Ignore { get; set; }
Property Value
IsRequired
Gets or sets a value indicating whether the REST element is required.
public bool IsRequired { get; set; }
Property Value
Name
Gets or sets the name associated with the REST entity.
public string Name { get; set; }