LocalizedString 类

定义

特定于区域设置的字符串。A locale specific string.

public ref class LocalizedString
public class LocalizedString
type LocalizedString = class
Public Class LocalizedString
继承
LocalizedString

构造函数

LocalizedString(String, String)

创建一个新的 LocalizedStringCreates a new LocalizedString.

LocalizedString(String, String, Boolean)

创建一个新的 LocalizedStringCreates a new LocalizedString.

LocalizedString(String, String, Boolean, String)

创建一个新的 LocalizedStringCreates a new LocalizedString.

属性

Name

该字符串在加载它的资源中的名称。The name of the string in the resource it was loaded from.

ResourceNotFound

是否在资源中找不到该字符串。Whether the string was not found in a resource. 如果为 true,则使用备用字符串值。If true, an alternate string value was used.

SearchedLocation

搜索本地化值的位置。The location which was searched for a localization value.

Value

实际的字符串。The actual string.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回实际的字符串。Returns the actual string.

运算符

Implicit(LocalizedString to String)

LocalizedString 隐式转换为 StringImplicitly converts the LocalizedString to a String.

适用于