Entropy Constructor (Byte[])
Initializes a new instance of the Entropy class with the specified entropy value.
Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim secret() As Byte
Dim entropy1 As New Entropy(secret)
Syntax
'Declaration
Public Sub New( _
ByVal secret() As Byte _
)
public Entropy(
byte[] secret
);
public: Entropy(
array<Byte>^ secret
);
public Entropy(
ubyte[] secret
);
public function Entropy(
secret : Byte[]
);
Parameters
- secret
An array of type System.Byte that contains the entropy value.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentNullException | secret is null. -or- secret is zero length. |
Remarks
This constructor sets the value of the BinarySecret property to a BinarySecret that contains the specified 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 Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
Entropy Class
Microsoft.Web.Services2.Security Namespace
BinarySecret
BinarySecret