Skip to main content
.NET Framework Class Library
StringEmpty Field

Represents the empty string. This field is read-only.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)
Syntax
Public Shared ReadOnly Empty As [%$TOPIC/74wsya52_en-us_VS_110_1_0_0_0_0%]
public static readonly [%$TOPIC/74wsya52_en-us_VS_110_1_0_1_0_0%] Empty
public:
static initonly [%$TOPIC/74wsya52_en-us_VS_110_1_0_2_0_0%]^ Empty
static val Empty: [%$TOPIC/74wsya52_en-us_VS_110_1_0_3_0_0%]
public static final var Empty : [%$TOPIC/74wsya52_en-us_VS_110_1_0_4_0_0%]
Remarks

The value of this field is the zero-length string, "".

In application code, this field is most commonly used in assignments to initialize a string variable to an empty string. To test whether the value of a string is either or StringEmpty, use the IsNullOrEmpty method.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8