MetadataBuilder.ReserveUserString(Int32) メソッド

定義

指定した長さの文字列に対して、ユーザー文字列ヒープの領域を予約します。

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 が負の値です。

適用対象