Information
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
[C#]
public bool IsLiteral {get;}
[C++]
public: __property bool get_IsLiteral();
[JScript]
public function get IsLiteral() : Boolean;

Property Value

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

Remarks

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.

Requirements

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
Show:
© 2015 Microsoft