UnsafeValueTypeAttribute Class
.NET Framework 3.0
Specifies that a type contains an unmanaged array that might potentially overflow. This class cannot be inherited.
Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets.Struct)] public sealed class UnsafeValueTypeAttribute : Attribute
/** @attribute SerializableAttribute() */ /** @attribute AttributeUsageAttribute(AttributeTargets.Struct) */ public final class UnsafeValueTypeAttribute extends Attribute
SerializableAttribute AttributeUsageAttribute(AttributeTargets.Struct) public final class UnsafeValueTypeAttribute extends Attribute
Not applicable.
Use the UnsafeValueTypeAttribute class to instruct the common language runtime (CLR) that a type contains an unmanaged array that can potentially overflow. When this attribute is encountered, the CLR inserts runtime checks to prevent the array from overflowing and to prevent buffer overrun attacks.
This class is used by the Microsoft Visual C++ and the Microsoft Visual C# compilers.
Windows 98, Windows Server 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
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: