Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OffsetToStringData Property
Collapse the table of content
Expand the table of content

RuntimeHelpers.OffsetToStringData Property

Gets the offset in bytes to the data in the given string.

[Visual Basic]
Public Shared ReadOnly Property OffsetToStringData As Integer
[C#]
public static int OffsetToStringData {get;}
[C++]
public: __property static int get_OffsetToStringData();
[JScript]
public static function get OffsetToStringData() : int;

Property Value

The byte offset, from the start of the String object to the first character in the string.

Remarks

Compilers use this property for unsafe, but efficient, pointer operations on the characters in a managed string. Compilers should pin the string against movement by the garbage collector prior to use. Note that common language runtime strings are immutable, their contents can be read but not changed.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

RuntimeHelpers Class | RuntimeHelpers Members | System.Runtime.CompilerServices Namespace

Show:
© 2015 Microsoft