The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FieldInfo.IsLiteral Property

Gets a value indicating whether the value is written at compile time and cannot be changed.

[Visual Basic]
Public ReadOnly Property IsLiteral As Boolean
public bool IsLiteral {get;}
public: __property bool get_IsLiteral();
public function get IsLiteral() : Boolean;

Property Value

true if the field has the Literal attribute set; otherwise, false.


The IsLiteral property is set when the FieldAttributes.Literal attribute is set. If this attribute is set, the field cannot be changed and is constant.


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

See Also

FieldInfo Class | FieldInfo Members | System.Reflection Namespace | FieldAttributes

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft