PC Review


Reply
Thread Tools Rate Thread

Change length of SecureString

 
 
Brian Stoop
Guest
Posts: n/a
 
      20th Apr 2009
I have a SecureString which has a Length of 20. How can I change the length
to 10?


thanks, B.


 
Reply With Quote
 
 
 
 
Pavel Minaev
Guest
Posts: n/a
 
      20th Apr 2009
On Apr 20, 2:04*pm, "Brian Stoop" <b.st...@consultant-spam.free.com>
wrote:
> I have a SecureString which has a Length of 20. How can I change the length
> to 10?


If by "changing length" here you mean "trim last 10 characters", then
use RemoveAt() method (which, of course, won't work on a string that
was MadeReadOnly()). Otherwise, please explain in more detail what you
want to achieve.
 
Reply With Quote
 
Brian Stoop
Guest
Posts: n/a
 
      21st Apr 2009
Your suggestion worked, its was not ReadOnly,

thanks, B

"Pavel Minaev" <(E-Mail Removed)> wrote in message
news:f65c673e-9cfd-4e95-8a73-(E-Mail Removed)...
On Apr 20, 2:04 pm, "Brian Stoop" <b.st...@consultant-spam.free.com>
wrote:
> I have a SecureString which has a Length of 20. How can I change the
> length
> to 10?


If by "changing length" here you mean "trim last 10 characters", then
use RemoveAt() method (which, of course, won't work on a string that
was MadeReadOnly()). Otherwise, please explain in more detail what you
want to achieve.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy SecureString with Length Brian Stoop Microsoft C# .NET 2 22nd Apr 2009 11:30 PM
How to change the length of report as I want in program(include length>22.75inch cwy Microsoft Access Reports 1 11th Dec 2003 09:55 PM
How to change the length of report as I want in program(include length>22.75inch cwy Microsoft Access Reports 1 10th Dec 2003 02:09 AM
How to change the length of report as I want in program(include length>22.75inch cwy Microsoft Access Reports 0 9th Dec 2003 04:55 PM
How to change the length of report as I want in program(include length>55.88cm) cwy Microsoft Access Reports 0 6th Dec 2003 02:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 AM.