RequestExtensions.ToBytes Method
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.MetaProvider.PowerShell
Assembly: Microsoft.OneGet.MetaProvider.PowerShell (in Microsoft.OneGet.MetaProvider.PowerShell.dll)
Usage
'Usage
Dim securePassword As SecureString
Dim returnValue As IEnumerable(Of Byte)
returnValue = RequestExtensions.ToBytes(securePassword)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ToBytes ( _
securePassword As SecureString _
) As IEnumerable(Of Byte)
[ExtensionAttribute]
public static IEnumerable<byte> ToBytes (
SecureString securePassword
)
[ExtensionAttribute]
public:
static IEnumerable<unsigned char>^ ToBytes (
SecureString^ securePassword
)
/** @attribute ExtensionAttribute() */
public static IEnumerable<byte> ToBytes (
SecureString securePassword
)
ExtensionAttribute
public static function ToBytes (
securePassword : SecureString
) : IEnumerable<byte>
Parameters
- securePassword
Return Value
Returns IEnumerable.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
RequestExtensions Class
RequestExtensions Members
Microsoft.OneGet.MetaProvider.PowerShell Namespace