SuppressIldasmAttribute Classe

Definizione

Attenzione

SuppressIldasmAttribute has no effect in .NET 6.0+.

Impedisce il disassemblaggio dell'assembly tramite Ildasm.exe (Disassembler IL). La classe non può essere ereditata.

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
Ereditarietà
SuppressIldasmAttribute
Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come applicare l'attributo SuppressIldasmAttribute a un assembly.

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

Commenti

Applicare l'attributo a un assembly o a un modulo per impedire il disassembling dell'assembly SuppressIldasmAttribute o del modulo usando il Ildasm.exe (IL Disassembler).

Questo attributo non impedisce la visualizzazione di un assembly tramite reflection.

Si noti che SuppressIldasmAttribute l'attributo non blocca l' Ildasm.exe (IL Disassembler) dalla visualizzazione delle informazioni sull'intestazione e sulle meta-informazioni.

Costruttori

SuppressIldasmAttribute()
Obsoleti.

Inizializza una nuova istanza della classe SuppressIldasmAttribute.

Proprietà

TypeId
Obsoleti.

Quando è implementata in una classe derivata, ottiene un identificatore univoco della classe Attribute.

(Ereditato da Attribute)

Metodi

Equals(Object)
Obsoleti.

Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
GetHashCode()
Obsoleti.

Restituisce il codice hash per l'istanza.

(Ereditato da Attribute)
GetType()
Obsoleti.

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
IsDefaultAttribute()
Obsoleti.

In caso di override in una classe derivata, indica se il valore di questa istanza è il valore predefinito per la classe derivata.

(Ereditato da Attribute)
Match(Object)
Obsoleti.

Quando è sottoposto a override in una classe derivata, restituisce un valore che indica se questa istanza equivale a un oggetto specificato.

(Ereditato da Attribute)
MemberwiseClone()
Obsoleti.

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
ToString()
Obsoleti.

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
Obsoleti.

Esegue il mapping di un set di nomi a un set corrispondente di ID dispatch.

(Ereditato da Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
Obsoleti.

Recupera le informazioni sul tipo relative a un oggetto, che possono essere usate per ottenere informazioni sul tipo relative a un'interfaccia.

(Ereditato da Attribute)
_Attribute.GetTypeInfoCount(UInt32)
Obsoleti.

Recupera il numero delle interfacce di informazioni sul tipo fornite da un oggetto (0 o 1).

(Ereditato da Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
Obsoleti.

Fornisce l'accesso a proprietà e metodi esposti da un oggetto.

(Ereditato da Attribute)

Si applica a