// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #if !NET6_0_OR_GREATER namespace System.Runtime.Versioning; /// /// Indicates that an API is in preview. /// [AttributeUsage( AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Delegate | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event, Inherited = false)] internal sealed class RequiresPreviewFeaturesAttribute : Attribute { /// /// Initializes a new instance of the class. /// public RequiresPreviewFeaturesAttribute() { } /// /// Initializes a new instance of the class with the specified message. /// /// An optional message associated with this attribute instance. public RequiresPreviewFeaturesAttribute(string? message) { Message = message; } /// /// Returns the optional message associated with this attribute instance. /// public string? Message { get; } /// /// Returns the optional URL associated with this attribute instance. /// public string? Url { get; set; } } #endif