Entropy Constructor (Int32)
Initializes a new instance of the Entropy class with a randomly generated entropy value of the specified size.
Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim sizeInBytes As Integer
Dim entropy1 As New Entropy(sizeInBytes)
Syntax
'Declaration
Public Sub New( _
ByVal sizeInBytes As Integer _
)
public Entropy(
int sizeInBytes
);
public:
Entropy(
int sizeInBytes
);
public Entropy(
int sizeInBytes
);
public function Entropy(
sizeInBytes : int
);
Parameters
- sizeInBytes
The size of the randomly generated entropy value, in bytes.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | sizeInBytes is less than or equal to zero. |
Remarks
This constructor sets the value of the BinarySecret property to a BinarySecret that contains the randomly generated entropy value.
When the Entropy class is serialized into XML, the entropy value is placed in a <BinarySecret> child element, but the value is not encrypted.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
Entropy Class
Entropy Members
Microsoft.Web.Services3.Security Namespace
BinarySecret
BinarySecret