BinarySecret Constructor (Byte[])
Initializes a new instance of the BinarySecret class using the specified key.
Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim secret() As Byte
Dim binarySecret1 As New BinarySecret(secret)
Syntax
'Declaration
Public Sub New( _
ByVal secret() As Byte _
)
public BinarySecret(
byte[] secret
);
public: BinarySecret(
array<Byte>^ secret
);
public BinarySecret(
ubyte[] secret
);
public function BinarySecret(
secret : Byte[]
);
Parameters
- secret
An array of type System.Byte containing the key to place in the <BinarySecret> element.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentNullException | secret is null. -or- secret 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