String 构造函数 (SByte*)
本文由机器翻译。若要查看英语原文,请勾选“英语”复选框。 也可将鼠标指针移到文本上,在弹出窗口中显示英语原文。
翻译
英语

String 构造函数 (SByte*)

 

Initializes a new instance of the String class to the value indicated by a pointer to an array of 8-bit signed integers.

命名空间:   System
程序集:  mscorlib(mscorlib.dll 中)

[SecurityCriticalAttribute]
[CLSCompliantAttribute(false)]
public unsafe String(
	sbyte* value
)

参数

value
Type: System.SByte*

A pointer to a null-terminated array of 8-bit signed integers.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

A new instance of String could not be initialized using value, assuming value is encoded in ANSI.

ArgumentOutOfRangeException

The length of the new string to initialize, which is determined by the null termination character of value, is too large to allocate.

AccessViolationException

value specifies an invalid address.

System_CAPS_note注意

For examples and comprehensive usage information about this and other String constructor overloads, see the Overload:System.String.#ctor constructor summary.

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
1.1 后可用
Silverlight
2.0 后可用
Windows Phone Silverlight
7.0 后可用
返回页首
显示:
© 2016 Microsoft