Share via


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) で使用できます。 BLOB の内容を入力するには、WriteUserString(String) を使用します。

例外

ヒープの残りの領域が小さすぎて文字列が収まりません。

length が負の値です。

適用対象