Partager via


BinarySecret Constructor (Byte[], String)

Initializes a new instance of the BinarySecret class using the specified key and type.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim secret() As Byte
Dim type As String
Dim binarySecret1 As New BinarySecret(secret, type)

Syntax

'Declaration
Public Sub New( _
    ByVal secret() As Byte, _
    ByVal type As String _
)
public BinarySecret(
    byte[] secret, 
    string type
);
public:
BinarySecret(
    array<unsigned char>^ secret, 
    String^ type
);
public BinarySecret(
    ubyte[] secret, 
    System.String type
);
public function BinarySecret(
     secret : Byte[], 
     type : String
);

Parameters

  • secret
    An array of type Byte containing the key to place in the <BinarySecret> element.
  • type
    One of the constants in the BinarySecret.Types class that indicates the nature of secret.

Exceptions

Exception type Condition
ArgumentNullException

secret or type is null.

-or-

secret or type does not contain any elements.

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

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