This documentation is archived and is not being maintained.

IsVolatile Class

Marks a field as volatile.

For a list of all members of this type, see IsVolatile Members.


[Visual Basic]
NotInheritable Public Class IsVolatile
public sealed class IsVolatile
public __gc __sealed class IsVolatile
public class IsVolatile

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


IsVolatile is used only in custom modifiers of method signatures to indicate that the field it marks is volatile. Any compiler that imports metadata with one or more fields marked as volatile must use instructions prefixed with "volatile." to access such fields.

The classes in System.Runtime.CompilerServices are for compiler writers use only.


Namespace: System.Runtime.CompilerServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

IsVolatile Members | System.Runtime.CompilerServices Namespace