UnsafeValueTypeAttribute Class
.NET Framework 2.0
Note: This class is new in the .NET Framework version 2.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)
'Declaration <SerializableAttribute> _ <AttributeUsageAttribute(AttributeTargets.Struct)> _ Public NotInheritable Class UnsafeValueTypeAttribute Inherits Attribute 'Usage Dim instance As UnsafeValueTypeAttribute
/** @attribute SerializableAttribute() */ /** @attribute AttributeUsageAttribute(AttributeTargets.Struct) */ public final class UnsafeValueTypeAttribute extends Attribute
SerializableAttribute AttributeUsageAttribute(AttributeTargets.Struct) public final class UnsafeValueTypeAttribute extends Attribute
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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: