SqlConnectionEncryptOption.TryParse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the specified string representation of a logical value to its SqlConnectionEncryptOption equivalent and returns a value that indicates whether the conversion succeeded.
public:
static bool TryParse(System::String ^ value, [Runtime::InteropServices::Out] Microsoft::Data::SqlClient::SqlConnectionEncryptOption ^ % result);
public static bool TryParse (string value, out Microsoft.Data.SqlClient.SqlConnectionEncryptOption result);
static member TryParse : string * SqlConnectionEncryptOption -> bool
Public Shared Function TryParse (value As String, ByRef result As SqlConnectionEncryptOption) As Boolean
Parameters
- value
- String
A string containing the value to convert.
- result
- SqlConnectionEncryptOption
An object that is equivalent to SqlConnectionEncryptOption contained in value
. null
if conversion fails.
Returns
true
if the value
parameter was converted successfully; otherwise, false
.
Remarks
This method does not throw an exception if conversion fails.