RequiresPreviewFeaturesAttribute 類別

定義

表示 API 處於預覽狀態。 此屬性可讓呼叫網站標示為診斷,指出使用預覽功能。 作者可以使用這個屬性來提供其元件中的預覽功能。

public ref class RequiresPreviewFeaturesAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)]
public sealed class RequiresPreviewFeaturesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)>]
type RequiresPreviewFeaturesAttribute = class
    inherit Attribute
Public NotInheritable Class RequiresPreviewFeaturesAttribute
Inherits Attribute
繼承
RequiresPreviewFeaturesAttribute
屬性

備註

RequiresPreviewFeaturesAttribute 會將 API 標示為需要 .NET 運行時間、其核心連結庫和編譯程式的預覽功能。 此 API 適用於平臺提供的功能,通常不應該在使用者程式代碼中使用。

如果您要在自己的連結庫中提供預覽功能, 請改用 ExperimentalAttribute

如需將 API 標示為預覽的詳細資訊,請參閱 預覽 API

建構函式

RequiresPreviewFeaturesAttribute()

初始化 RequiresPreviewFeaturesAttribute 類別的新執行個體。

RequiresPreviewFeaturesAttribute(String)

使用指定的訊息初始化 RequiresPreviewFeaturesAttribute 類別的新執行個體。

屬性

Message

取得與這個屬性實例相關聯的選擇性訊息。

TypeId

在衍生類別中實作時,取得這個 Attribute 的唯一識別碼。

(繼承來源 Attribute)
Url

取得或設定與這個屬性實例相關聯的選擇性 URL。

方法

Equals(Object)

傳回值,這個值指出此執行個體是否與指定的物件相等。

(繼承來源 Attribute)
GetHashCode()

傳回這個執行個體的雜湊碼。

(繼承來源 Attribute)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IsDefaultAttribute()

在衍生類別中覆寫時,表示這個執行個體的值是衍生類別的預設值。

(繼承來源 Attribute)
Match(Object)

在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。

(繼承來源 Attribute)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱