Share via


MetadataStringDecoder.GetString(Byte*, Int32) 方法

定義

從中繼資料中的位元組序列取得字串。 如有需要可覆寫此項目,以快取字串。 否則,它會藉由直接轉送至 Encoding 來實作,且每次呼叫都會配置新字串。

public:
 virtual System::String ^ GetString(System::Byte* bytes, int byteCount);
public virtual string GetString (byte* bytes, int byteCount);
abstract member GetString : nativeptr<byte> * int -> string
override this.GetString : nativeptr<byte> * int -> string

參數

bytes
Byte*

要解碼的位元組指標。

byteCount
Int32

要解碼的位元組數目。

傳回

解碼的字串。

適用於