SkipLocalsInitAttribute Sınıf

Tanım

Derleyiciye. Yereller init bayrağının meta verilere yayırken iç içe geçmiş yöntem üst bilgilerinde ayarlanmamalıdır.Indicates to the compiler that the .locals init flag should not be set in nested method headers when emitting to metadata.

public ref class SkipLocalsInitAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)]
public sealed class SkipLocalsInitAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)>]
type SkipLocalsInitAttribute = class
    inherit Attribute
Public NotInheritable Class SkipLocalsInitAttribute
Inherits Attribute
Devralma
SkipLocalsInitAttribute
Öznitelikler

Açıklamalar

Bu öznitelik güvenli değildir, çünkü belirli örneklerde uygulamaya başlatılmamış belleği açığa çıkarmayabilir (örneğin, başlatılmamış yığına ayrılan bellekten okuma).This attribute is unsafe, because it may reveal uninitialized memory to the application in certain instances (for example, reading from uninitialized stack-allocated memory). Bir yönteme doğrudan uygulanmışsa, öznitelik bu yönteme ve Lambdalar ve yerel işlevler dahil olmak üzere iç içe geçmiş işlevlere uygulanır.If applied to a method directly, the attribute applies to that method and all its nested functions, including lambdas and local functions. Bir tür veya modüle uygulanmışsa, içinde iç içe geçmiş tüm yöntemler için geçerlidir.If applied to a type or module, it applies to all methods nested inside. Bu özniteliğe derlemelerdeki kasıtlı olarak izin verilmez.This attribute is intentionally not permitted on assemblies. Özniteliği birden çok tür bildirimlerine uygulamak için bunun yerine modül düzeyinde kullanın.To apply the attribute to multiple type declarations, use it at the module level instead.

Oluşturucular

SkipLocalsInitAttribute()

SkipLocalsInitAttribute sınıfının yeni bir örneğini başlatır.Initializes a new instance of the SkipLocalsInitAttribute class.

Özellikler

TypeId

Türetilmiş bir sınıfta uygulandığında, bunun için benzersiz bir tanımlayıcı alır Attribute .When implemented in a derived class, gets a unique identifier for this Attribute.

(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.Returns a value that indicates whether this instance is equal to a specified object.

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

Bu örneğe ilişkin karma kodu döndürür.Returns the hash code for this instance.

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

TypeGeçerli örneği alır.Gets the Type of the current instance.

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

Türetilmiş bir sınıfta geçersiz kılınırsa, bu örneğin değerinin türetilmiş sınıf için varsayılan değer olup olmadığını gösterir.When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

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

Türetilmiş bir sınıfta geçersiz kılınırsa, bu örneğin belirtilen bir nesneye eşit olup olmadığını gösteren bir değer döndürür.When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

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

Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object.

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

Geçerli nesneyi temsil eden dizeyi döndürür.Returns a string that represents the current object.

(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.Maps a set of names to a corresponding set of dispatch identifiers.

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

Bir arabirimin tür bilgilerini almak için kullanılabilen bir nesnenin tür bilgilerini alır.Retrieves the type information for an object, which can be used to get the type information for an interface.

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

Bir nesnenin sağladığı tür bilgisi arabirimlerinin sayısını alır (0 ya da 1).Retrieves the number of type information interfaces that an object provides (either 0 or 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.Provides access to properties and methods exposed by an object.

(Devralındığı yer: Attribute)

Şunlara uygulanır