MetadataBuilder.ReserveUserString(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した長さの文字列に対して、ユーザー文字列ヒープの領域を予約します。
public:
System::Reflection::Metadata::ReservedBlob<System::Reflection::Metadata::UserStringHandle> ReserveUserString(int length);
public System.Reflection.Metadata.ReservedBlob<System.Reflection.Metadata.UserStringHandle> ReserveUserString(int length);
member this.ReserveUserString : int -> System.Reflection.Metadata.ReservedBlob<System.Reflection.Metadata.UserStringHandle>
Public Function ReserveUserString (length As Integer) As ReservedBlob(Of UserStringHandle)
パラメーター
- length
- Int32
予約する文字数。
返品
予約されたユーザー文字列へのハンドルと、ユーザー文字列 BLOB 全体を表す Blob (長さとターミナル文字を含む)。 ハンドルは、 LoadString(UserStringHandle)で使用できます。 WriteUserString(String)を使用して BLOB コンテンツを入力します。
例外
ヒープ上の残りの領域が小さすぎて文字列に収まりません。
length が負の値です。