ObsoletedOSPlatformAttribute Klasa

Definicja

Oznacza interfejsy API, które zostały przestarzałe w danej wersji systemu operacyjnego.

public ref class ObsoletedOSPlatformAttribute sealed : System::Runtime::Versioning::OSPlatformAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
public sealed class ObsoletedOSPlatformAttribute : System.Runtime.Versioning.OSPlatformAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
type ObsoletedOSPlatformAttribute = class
    inherit OSPlatformAttribute
Public NotInheritable Class ObsoletedOSPlatformAttribute
Inherits OSPlatformAttribute
Dziedziczenie
ObsoletedOSPlatformAttribute
Atrybuty

Uwagi

Głównie używane przez powiązania systemu operacyjnego do wskazywania interfejsów API, które nie powinny być już używane.

Konstruktory

Nazwa Opis
ObsoletedOSPlatformAttribute(String, String)

Inicjuje ObsoletedOSPlatformAttribute nowe wystąpienie klasy atrybutów dla określonej przestarzałej platformy systemu operacyjnego z dodatkowym komunikatem.

ObsoletedOSPlatformAttribute(String)

Inicjuje nowe wystąpienie ObsoletedOSPlatformAttribute klasy dla określonej przestarzałej platformy systemu operacyjnego.

Właściwości

Nazwa Opis
Message

Pobiera opcjonalny dodatkowy komunikat podany dla atrybutu.

PlatformName

Pobiera nazwę i opcjonalną wersję platformy, do którego ma zastosowanie atrybut.

(Odziedziczone po OSPlatformAttribute)
TypeId

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

(Odziedziczone po Attribute)
Url

Pobiera lub ustawia adres URL odpowiedniej dokumentacji.

Metody

Nazwa Opis
Equals(Object)

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

(Odziedziczone po Attribute)
GetHashCode()

Zwraca kod skrótu dla tego wystąpienia.

(Odziedziczone po Attribute)
GetType()

Pobiera Type bieżącego wystąpienia.

(Odziedziczone po Object)
IsDefaultAttribute()

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

(Odziedziczone po Attribute)
Match(Object)

Po zastąpieniu 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 Object.

(Odziedziczone po Object)
ToString()

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

(Odziedziczone po Object)

Dotyczy