CompilationRelaxationsAttribute Sınıf

Tanım

Ortak dil çalışma zamanının tam zamanında (JIT) derleyicisi tarafından oluşturulan kodun katılığını denetler.

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
Devralma
CompilationRelaxationsAttribute
Öznitelikler

Örnekler

Aşağıdaki örnekte, uygulamasının nasıl uygulanacağı gösterilmektedir 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

Açıklamalar

CompilationRelaxationsAttribute Derleme derleme parametrelerini belirtmek için özniteliğini derlemelere uygulayın. CompilationRelaxations Derleme seçeneklerini belirtmek için numaralandırmayı kullanın.

Bu öznitelik, Microsoft .NET Framework sürüm 1.0'da yoksayılır.

içindeki System.Runtime.CompilerServices sınıflar yalnızca derleyici yazarlarının kullanımına yöneliktir.

Oluşturucular

CompilationRelaxationsAttribute(CompilationRelaxations)

Belirtilen CompilationRelaxations değerle sınıfının yeni bir örneğini CompilationRelaxationsAttribute başlatır.

CompilationRelaxationsAttribute(Int32)

Belirtilen derleme gevşetmeleriyle sınıfının yeni bir örneğini CompilationRelaxationsAttribute başlatır.

Özellikler

CompilationRelaxations

Geçerli nesne oluşturulduğunda belirtilen derleme gevşetmelerini alır.

TypeId

Türetilmiş bir sınıfta uygulandığında, bu Attributeiçin benzersiz bir tanımlayıcı alır.

(Devralındığı yer: Attribute)

Yöntemler

Equals(Object)

Bu örneğin belirtilen bir nesneye eşit olup olmadığını gösteren bir değeri döndürür.

(Devralındığı yer: Attribute)
GetHashCode()

Bu örneğe ilişkin karma kodu döndürür.

(Devralındığı yer: Attribute)
GetType()

Type Geçerli örneğini alır.

(Devralındığı yer: Object)
IsDefaultAttribute()

Türetilmiş bir sınıfta geçersiz kılındığında, bu örneğin değerinin türetilmiş sınıf için varsayılan değer olup olmadığını gösterir.

(Devralındığı yer: Attribute)
Match(Object)

Türetilmiş bir sınıfta geçersiz kılındığında, bu örneğin belirtilen bir nesneye eşit olup olmadığını belirten bir değer döndürür.

(Devralındığı yer: Attribute)
MemberwiseClone()

Geçerli Objectöğesinin sığ bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden dizeyi döndürür.

(Devralındığı yer: Object)

Belirtik Arabirim Kullanımları

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

Bir ad kümesini karşılık gelen bir dağıtma tanımlayıcısı kümesine eşler.

(Devralındığı yer: Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Bir arabirimin tür bilgilerini almak için kullanılabilecek bir nesnenin tür bilgilerini alır.

(Devralındığı yer: Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Bir nesnenin sağladığı tür bilgisi arabirimlerinin sayısını alır (0 ya da 1).

(Devralındığı yer: Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Bir nesne tarafından sunulan özelliklere ve yöntemlere erişim sağlar.

(Devralındığı yer: Attribute)

Şunlara uygulanır

Ayrıca bkz.