Class BasedOnAttribute
Identifies the schema member used by a result type and optionally records its acknowledged version.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
public sealed class BasedOnAttribute : Attribute, IEnumerable<MemberInfo>, IEnumerable
- Inheritance
-
BasedOnAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
BasedOnAttribute(Type, string?, string?)
Selects constructors, or the named methods, and optionally parses an acknowledged schema timestamp.
public BasedOnAttribute(Type declaringType, string? lastUpdated = null, string? methodName = null)
Parameters
Properties
DeclaringType
Gets the type that declares the referenced member.
public Type DeclaringType { get; }
Property Value
LastUpdated
Gets the UTC time at which the link was last synchronized.
public DateTime? LastUpdated { get; }
Property Value
MethodName
Gets the method name when this reference selects a method.
public string? MethodName { get; }
Property Value
Methods
GetEnumerator()
Enumerates the schema members selected by this attribute.
public IEnumerator<MemberInfo> GetEnumerator()