Share via


BinarySecret Constructor (Byte , String)

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

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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<Byte>^ secret, 
    String^ type
);
public BinarySecret(
    ubyte[] secret, 
    System.String type
);
public function BinarySecret(
     secret : Byte[], 
     type : String
);

Parameters

  • secret
    An array of type System.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
System.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 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

BinarySecret Class
Microsoft.Web.Services2.Security Namespace

Other Resources

BinarySecret Members