ObsoletedOSPlatformAttribute Třída

Definice

Označuje rozhraní API, která byla zastaralá v dané verzi operačního systému.

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

Poznámky

Primárně používá vazby operačního systému k označení rozhraní API, která by se už neměla používat.

Konstruktory

Name Description
ObsoletedOSPlatformAttribute(String, String)

Inicializuje novou instanci třídy atributu ObsoletedOSPlatformAttribute pro zadanou zastaralou platformu operačního systému s další zprávou.

ObsoletedOSPlatformAttribute(String)

Inicializuje novou instanci ObsoletedOSPlatformAttribute třídy pro zadanou zastaralou platformu operačního systému.

Vlastnosti

Name Description
Message

Získá volitelnou další zprávu zadanou pro atribut.

PlatformName

Získá název a volitelnou verzi platformy, na kterou se atribut vztahuje.

(Zděděno od OSPlatformAttribute)
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í adresu URL pro odpovídající dokumentaci.

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