RequestExtensions.ToProtectedString 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 secureString As SecureString
Dim salt As String
Dim returnValue As String
returnValue = RequestExtensions.ToProtectedString(secureString, salt)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ToProtectedString ( _
secureString As SecureString, _
salt As String _
) As String
[ExtensionAttribute]
public static string ToProtectedString (
SecureString secureString,
string salt
)
[ExtensionAttribute]
public:
static String^ ToProtectedString (
SecureString^ secureString,
String^ salt
)
/** @attribute ExtensionAttribute() */
public static String ToProtectedString (
SecureString secureString,
String salt
)
ExtensionAttribute
public static function ToProtectedString (
secureString : SecureString,
salt : String
) : String
Parameters
- secureString
- salt
Return Value
Returns String.
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