UnsafeValueTypeAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <AttributeUsageAttribute(AttributeTargets.Struct)> _ Public NotInheritable Class UnsafeValueTypeAttribute Inherits Attribute
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets.Struct)] public sealed class UnsafeValueTypeAttribute : Attribute
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets::Struct)] public ref class UnsafeValueTypeAttribute sealed : public Attribute

UnsafeValueTypeAttribute クラスを使用して、オーバーフローする可能性があるアンマネージ配列を型に格納することを共通言語ランタイム (CLR) に伝えます。CLR はこの属性を検出すると、配列のオーバーフローおよびバッファ オーバーラン攻撃を防止するためにランタイム チェックを挿入します。
このクラスは、Microsoft Visual C++ コンパイラおよび Microsoft Visual C# コンパイラによって使用されます。

System.Attribute
System.Runtime.CompilerServices.UnsafeValueTypeAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- UnsafeValueTypeAttribute クラスのページへのリンク