ObsoletedOSPlatformAttribute Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menandai API yang usang dalam versi sistem operasi tertentu.
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
- Warisan
- Atribut
Keterangan
Terutama digunakan oleh pengikatan OS untuk menunjukkan API yang tidak boleh digunakan lagi.
Konstruktor
| Nama | Deskripsi |
|---|---|
| ObsoletedOSPlatformAttribute(String, String) |
Menginisialisasi instans ObsoletedOSPlatformAttribute baru kelas atribut untuk platform OS usang yang ditentukan dengan pesan tambahan. |
| ObsoletedOSPlatformAttribute(String) |
Menginisialisasi instans ObsoletedOSPlatformAttribute baru kelas untuk platform OS usang yang ditentukan. |
Properti
| Nama | Deskripsi |
|---|---|
| Message |
Mendapatkan pesan tambahan opsional yang disediakan untuk atribut . |
| PlatformName |
Mendapatkan nama dan versi opsional platform tempat atribut berlaku. (Diperoleh dari OSPlatformAttribute) |
| TypeId |
Ketika diimplementasikan dalam kelas turunan, mendapatkan pengidentifikasi unik untuk Attributeini. (Diperoleh dari Attribute) |
| Url |
Mendapatkan atau mengatur URL untuk dokumentasi yang sesuai. |
Metode
| Nama | Deskripsi |
|---|---|
| Equals(Object) |
Mengembalikan nilai yang menunjukkan apakah instans ini sama dengan objek tertentu. (Diperoleh dari Attribute) |
| GetHashCode() |
Mengembalikan kode hash untuk instans ini. (Diperoleh dari Attribute) |
| GetType() |
Mendapatkan Type instans saat ini. (Diperoleh dari Object) |
| IsDefaultAttribute() |
Ketika ditimpa dalam kelas turunan, menunjukkan apakah nilai instans ini adalah nilai default untuk kelas turunan. (Diperoleh dari Attribute) |
| Match(Object) |
Saat ditimpa dalam kelas turunan, mengembalikan nilai yang menunjukkan apakah instans ini sama dengan objek tertentu. (Diperoleh dari Attribute) |
| MemberwiseClone() |
Membuat salinan dangkal dari Objectsaat ini. (Diperoleh dari Object) |
| ToString() |
Mengembalikan string yang mewakili objek saat ini. (Diperoleh dari Object) |