SuppressIldasmAttribute Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przestroga
SuppressIldasmAttribute has no effect in .NET 6.0+.
Zapobiega dezasemblowaniu zestawuIldasm.exe (IL Dezasembler ). Klasa ta nie może być dziedziczona.
public ref class SuppressIldasmAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Module)]
public sealed class SuppressIldasmAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Module)]
[System.Obsolete("SuppressIldasmAttribute has no effect in .NET 6.0+.", DiagnosticId="SYSLIB0025", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class SuppressIldasmAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Module)>]
type SuppressIldasmAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Module)>]
[<System.Obsolete("SuppressIldasmAttribute has no effect in .NET 6.0+.", DiagnosticId="SYSLIB0025", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SuppressIldasmAttribute = class
inherit Attribute
Public NotInheritable Class SuppressIldasmAttribute
Inherits Attribute
- Dziedziczenie
- Atrybuty
Przykłady
W poniższym przykładzie kodu pokazano, jak zastosować SuppressIldasmAttribute atrybut do zestawu.
using System;
using System.Runtime.CompilerServices;
[assembly: SuppressIldasmAttribute()]
class Program
{
static void Main(string[] args)
{
Console.WriteLine("The SuppressIldasmAttribute is applied to this assembly.");
}
}
Imports System.Runtime.CompilerServices
<Assembly: SuppressIldasmAttribute()>
Class Program
Shared Sub Main(ByVal args() As String)
Console.WriteLine("The SuppressIldasmAttribute is applied to this assembly.")
End Sub
End Class
Uwagi
SuppressIldasmAttribute Zastosuj atrybut do zestawu lub modułu, aby zapobiec dezasemblowaniu zestawu lub modułu przy użyciu Ildasm.exe (IL Dezasembler).
Ten atrybut nie uniemożliwia wyświetlania zestawu przy użyciu odbicia.
Należy pamiętać, że SuppressIldasmAttribute atrybut nie blokuje Ildasm.exe (IL Dezasembler) z wyświetlania informacji nagłówka i metadanych.
Konstruktory
SuppressIldasmAttribute() |
Przestarzałe.
Inicjuje nowe wystąpienie klasy SuppressIldasmAttribute. |
Właściwości
TypeId |
Przestarzałe.
Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego elementu Attribute. (Odziedziczone po Attribute) |
Metody
Equals(Object) |
Przestarzałe.
Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi. (Odziedziczone po Attribute) |
GetHashCode() |
Przestarzałe.
Zwraca wartość skrótu dla tego wystąpienia. (Odziedziczone po Attribute) |
GetType() |
Przestarzałe.
Type Pobiera bieżące wystąpienie. (Odziedziczone po Object) |
IsDefaultAttribute() |
Przestarzałe.
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) |
Przestarzałe.
W przypadku zastąpienia w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi. (Odziedziczone po Attribute) |
MemberwiseClone() |
Przestarzałe.
Tworzy płytkią kopię bieżącego Objectelementu . (Odziedziczone po Object) |
ToString() |
Przestarzałe.
Zwraca ciąg reprezentujący bieżący obiekt. (Odziedziczone po Object) |
Jawne implementacje interfejsu
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
Przestarzałe.
Zestaw nazw jest mapowany na odpowiedni zestaw identyfikatorów wysyłania. (Odziedziczone po Attribute) |
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
Przestarzałe.
Pobiera informacje o typie obiektu, którego można użyć do pobrania informacji o typie interfejsu. (Odziedziczone po Attribute) |
_Attribute.GetTypeInfoCount(UInt32) |
Przestarzałe.
Pobiera informację o liczbie typów interfejsów, jakie zawiera obiekt (0 lub 1). (Odziedziczone po Attribute) |
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
Przestarzałe.
Umożliwia dostęp do właściwości i metod udostępnianych przez obiekt. (Odziedziczone po Attribute) |
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla