CompilationRelaxationsAttribute Klasa
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.
Kontroluje ścisłość kodu wygenerowanego przez kompilator just in time (JIT) środowiska uruchomieniowego języka wspólnego.
public ref class CompilationRelaxationsAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Module)]
public class CompilationRelaxationsAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Module)]
[System.Serializable]
public class CompilationRelaxationsAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Module)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class CompilationRelaxationsAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Module)>]
type CompilationRelaxationsAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Module)>]
[<System.Serializable>]
type CompilationRelaxationsAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method | System.AttributeTargets.Module)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type CompilationRelaxationsAttribute = class
inherit Attribute
Public Class CompilationRelaxationsAttribute
Inherits Attribute
- Dziedziczenie
- Atrybuty
W poniższym przykładzie pokazano, jak zastosować element CompilationRelaxationsAttribute.
using System;
using System.Runtime.CompilerServices;
[assembly:CompilationRelaxationsAttribute(CompilationRelaxations.NoStringInterning)]
class Program
{
static void Main(string[] args)
{
Console.WriteLine("The CompilationRelaxationsAttribute attribute was applied.");
}
}
Imports System.Runtime.CompilerServices
<Assembly: CompilationRelaxationsAttribute(CompilationRelaxations.NoStringInterning)>
Module Program
Sub Main(ByVal args() As String)
Console.WriteLine("The CompilationRelaxationsAttribute attribute was applied.")
End Sub
End Module
CompilationRelaxationsAttribute Zastosuj atrybut do zestawów, aby określić parametry kompilacji zestawu. Użyj wyliczenia CompilationRelaxations , aby określić opcje kompilacji.
Ten atrybut jest ignorowany w wersji 1.0 .NET Framework firmy Microsoft.
Klasy w programie System.Runtime.CompilerServices są przeznaczone tylko do użytku autorów kompilatora.
Compilation |
Inicjuje CompilationRelaxationsAttribute nowe wystąpienie klasy o określonej CompilationRelaxations wartości. |
Compilation |
Inicjuje CompilationRelaxationsAttribute nowe wystąpienie klasy z określonymi relaksami kompilacji. |
Compilation |
Pobiera złagodzenie kompilacji określone podczas konstruowania bieżącego obiektu. |
Type |
Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego elementu Attribute. (Odziedziczone po Attribute) |
Equals(Object) |
Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi. (Odziedziczone po Attribute) |
Get |
Zwraca wartość skrótu dla tego wystąpienia. (Odziedziczone po Attribute) |
Get |
Type Pobiera bieżące wystąpienie. (Odziedziczone po Object) |
Is |
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) |
W przypadku zastąpienia w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi. (Odziedziczone po Attribute) |
Memberwise |
Tworzy płytkią kopię bieżącego Objectelementu . (Odziedziczone po Object) |
To |
Zwraca ciąg reprezentujący bieżący obiekt. (Odziedziczone po Object) |
_Attribute. |
Zestaw nazw jest mapowany na odpowiedni zestaw identyfikatorów wysyłania. (Odziedziczone po Attribute) |
_Attribute. |
Pobiera informacje o typie obiektu, którego można użyć do pobrania informacji o typie interfejsu. (Odziedziczone po Attribute) |
_Attribute. |
Pobiera informację o liczbie typów interfejsów, jakie zawiera obiekt (0 lub 1). (Odziedziczone po Attribute) |
_Attribute. |
Umożliwia dostęp do właściwości i metod udostępnianych przez obiekt. (Odziedziczone po Attribute) |
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: