特定の文字列で、データへのバイト単位のオフセットを取得します。
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;
プロパティ値
String オブジェクトの先頭から、文字列の最初の文字までのバイト オフセット。
解説
コンパイラは、マネージ文字列内の文字に対して安全ではないが効率はよいポインタ操作を行うために、このプロパティを使用します。コンパイラは、使用前に文字列がガベージ コレクタによって移動されないようにする必要があります。共通言語ランタイム文字列は不変型で、その内容を読み取ることはできますが、変更はできないことに注意してください。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard
参照
RuntimeHelpers クラス | RuntimeHelpers メンバ | System.Runtime.CompilerServices 名前空間