ExperimentalAttribute Klasa

Definicja

Wskazuje, że interfejs API jest eksperymentalny i może ulec zmianie w przyszłości.

public ref class ExperimentalAttribute 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 ExperimentalAttribute : 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 ExperimentalAttribute = class
    inherit Attribute
Public NotInheritable Class ExperimentalAttribute
Inherits Attribute
Dziedziczenie
ExperimentalAttribute
Atrybuty

Uwagi

ExperimentalAttribute Umożliwia oflagowane witrynom wywołań za pomocą diagnostyki, która wskazuje, że jest używana funkcja eksperymentalna. Tego atrybutu można użyć do dostarczania funkcji w wersji zapoznawczej w innych stabilnych bibliotekach.

Aby uzyskać więcej informacji na temat oznaczania interfejsów API jako wersji zapoznawczej, zobacz Interfejsy API w wersji zapoznawczej.

Konstruktory

ExperimentalAttribute(String)

Inicjuje ExperimentalAttribute nowe wystąpienie klasy, określając identyfikator używany przez kompilator podczas raportowania użycia interfejsu API, którego dotyczy atrybut .

Właściwości

DiagnosticId

Pobiera identyfikator używany przez kompilator podczas raportowania użycia interfejsu API, którego dotyczy atrybut .

TypeId

Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego Attributeelementu .

(Odziedziczone po Attribute)
UrlFormat

Pobiera lub ustawia adres URL odpowiedniej dokumentacji. Interfejs API akceptuje ciąg formatu zamiast rzeczywistego adresu URL, tworząc ogólny adres URL zawierający identyfikator diagnostyczny.

Metody

Equals(Object)

Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.

(Odziedziczone po Attribute)
GetHashCode()

Zwraca wartość skrótu dla tego wystąpienia.

(Odziedziczone po Attribute)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
IsDefaultAttribute()

Podczas zastępowania w klasie pochodnej wskazuje, czy wartość tego wystąpienia jest wartością domyślną dla klasy pochodnej.

(Odziedziczone po Attribute)
Match(Object)

Po przesłonięciu w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi.

(Odziedziczone po Attribute)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy

Zobacz też