共用方式為


TextInfo.ListSeparator Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the string that separates items in a list.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overridable Property ListSeparator As String
public virtual string ListSeparator { get; set; }

Property Value

Type: System.String
The string that separates items in a list.

Exceptions

Exception Condition
ArgumentNullException

The value in a set operation is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

In a set operation, the current TextInfo object is read-only.

Remarks

On the Macintosh, the default value of this property is always a comma (,) regardless of the culture.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.