TargetPlatformAttribute Klasa

Definicja

Określa system operacyjny przeznaczony dla projektu, na przykład Windows lub iOS.

public ref class TargetPlatformAttribute sealed : System::Runtime::Versioning::OSPlatformAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)]
public sealed class TargetPlatformAttribute : System.Runtime.Versioning.OSPlatformAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)>]
type TargetPlatformAttribute = class
    inherit OSPlatformAttribute
Public NotInheritable Class TargetPlatformAttribute
Inherits OSPlatformAttribute
Dziedziczenie
TargetPlatformAttribute
Atrybuty

Konstruktory

TargetPlatformAttribute(String)

Inicjuje TargetPlatformAttribute nowe wystąpienie klasy atrybutów dla określonej docelowej platformy systemu operacyjnego.

Właściwości

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 Attributeelementu .

(Odziedziczone po Attribute)

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()

W przypadku zastąpienia w klasie pochodnej wskazuje, czy wartość tego wystąpienia jest wartością domyślną 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