What is the system type for byte array - asp.net?
I need to use a byte array as a profile property on a website. Normally I would declare the type as system.string or system.int32, but I have no idea what an if type is for an array of bytes.
EDIT: I need to use this as a profile property that is declared in the web.config file as shown below:
<profile defaultProvider="ProfileProvider" enabled="true">
<properties>
<add name="Username" allowAnonymous="false" type="System.String" />
<add name="LoginToken" allowAnonymous="false" type=" System.Byte()" />
</properties>
</profile>
0
William hurst
source
to share
2 answers
Obviously vb wants it to be declared as System.Byte [] in the web.config file
+1
William hurst
source
to share
I am coming from a C # background, so my answer is not accurate, but I think you want something like:
system.byte[] myByteArray = new system.byte[50]();
myByteArray[0] = 1;
myByteArray[2] = 20; // etc, etc.
+1
abelenky
source
to share