字节数组的系统类型是什么 - asp.net?

时间:2008-11-19 06:41:21

标签: asp.net vb.net

我需要在网站中使用字节数组作为配置文件属性。通常我会将类型声明为system.string或system.int32,但我不知道对于字节数组的类型是什么。

编辑:我需要将此作为在web.config中声明的配置文件属性,如下所示:

<profile defaultProvider="ProfileProvider" enabled="true">
    <properties>
            <add name="Username" allowAnonymous="false" type="System.String" />
            <add name="LoginToken" allowAnonymous="false" type=" System.Byte()" />
        </properties>
</profile>

2 个答案:

答案 0 :(得分:1)

我来自C#背景,所以我的答案不准确,但我想你想要的东西:

system.byte[] myByteArray = new system.byte[50]();
myByteArray[0] = 1;
myByteArray[2] = 20; // etc, etc.

答案 1 :(得分:1)

显然vb希望它在web.config

中声明为System.Byte []