Partager via


Entropy Constructor (Byte )

Initializes a new instance of the Entropy class with the specified entropy value.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.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<unsigned char>^ secret
);
public Entropy(
    ubyte[] secret
);
public function Entropy(
     secret : Byte[]
);

Parameters

  • secret
    An array of type Byte that contains the entropy value.

Exceptions

Exception type Condition
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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

Entropy Class
Entropy Members
Microsoft.Web.Services3.Security Namespace
BinarySecret
BinarySecret