語言

JSObject.GetPropertyAsByteArray(String) 方法

定義

若屬性存在,則回傳該屬性的值為 Byte 陣列,否則 null。

public:
 cli::array <System::Byte> ^ GetPropertyAsByteArray(System::String ^ propertyName);
public byte[]? GetPropertyAsByteArray(string propertyName);
member this.GetPropertyAsByteArray : string -> byte[]
Public Function GetPropertyAsByteArray (propertyName As String) As Byte()

參數

propertyName
String

屬性的名稱。

傳回

Byte[]

該物業名稱的價值。

例外狀況

屬性值不是陣列。

備註

當屬性值不是陣列時,此方法會拋出 a JSException 。

適用於

另請參閱