<p>I need to use a byte array as a profile property in a website. Normally I would declare the type as system.string or system.int32 but I have no idea what the type if for a byte array.</p>

<p>EDIT: I need to use this as profile property that is declared in the web.config like below:</p>

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

If the file is opened by another process in exclusive mode, you can't -- Windows won't let you.  In that case, the best you can do is to either wait for the other process to close the file and then delete it, or have it be deleted at the next reboot by using
```
MoveFileEx()
```
with the flag
```
MOVEFILE_DELAY_UNTIL_REBOOT
```
and a destination location of
```
NULL
```
.
If the file is opened non-exclusively by another process, you can just call
```
DeleteFile()
```
normally (assuming you have permission to do so).  The file will remain while the other process has it open, but it will be deleted as soon as the other process closes it.
(And yes, I realize those links are for the Win32 C API; the same functions should be available under VB .NET)