RequiresPreviewFeaturesAttribute Třída

Definice

Označuje, že rozhraní API je ve verzi Preview. Tento atribut umožňuje, aby se weby volání označovaly příznakem diagnostiky, která indikuje, že se používá funkce Preview. Autoři můžou tento atribut použít k odeslání funkcí preview ve svých sestaveních.

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
Dědičnost
RequiresPreviewFeaturesAttribute
Atributy

Poznámky

RequiresPreviewFeaturesAttribute označuje rozhraní API jako vyžadování funkce preview z modulu runtime .NET, jeho základních knihoven a kompilátorů. Toto rozhraní API je určené pro funkce poskytované platformou a obecně by se nemělo používat v uživatelském kódu.

Pokud chcete dodávat funkce preview ve vlastních knihovnách, použijte ExperimentalAttribute místo toho funkci Preview.

Další informace o označení rozhraní API ve verzi Preview najdete v tématu Rozhraní API ve verzi Preview.

Konstruktory

Name Description
RequiresPreviewFeaturesAttribute()

Inicializuje novou instanci RequiresPreviewFeaturesAttribute třídy.

RequiresPreviewFeaturesAttribute(String)

Inicializuje novou instanci RequiresPreviewFeaturesAttribute třídy se zadanou zprávou.

Vlastnosti

Name Description
Message

Získá volitelnou zprávu přidruženou k této instanci atributu.

TypeId

Při implementaci v odvozené třídě získá jedinečný identifikátor pro tento Attribute.

(Zděděno od Attribute)
Url

Získá nebo nastaví volitelnou adresu URL přidruženou k této instanci atributu.

Metody

Name Description
Equals(Object)

Vrátí hodnotu, která určuje, zda je tato instance rovna zadanému objektu.

(Zděděno od Attribute)
GetHashCode()

Vrátí kód hash pro tuto instanci.

(Zděděno od Attribute)
GetType()

Získá Type aktuální instance.

(Zděděno od Object)
IsDefaultAttribute()

Při přepsání v odvozené třídě určuje, zda hodnota této instance je výchozí hodnotou pro odvozenou třídu.

(Zděděno od Attribute)
Match(Object)

Při přepsání v odvozené třídě vrátí hodnotu, která určuje, zda se tato instance rovná zadanému objektu.

(Zděděno od Attribute)
MemberwiseClone()

Vytvoří mělkou kopii aktuálního Object.

(Zděděno od Object)
ToString()

Vrátí řetězec, který představuje aktuální objekt.

(Zděděno od Object)

Platí pro

Viz také