SqlConnectionEncryptOption.TryParse Method

Definition

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.

Applies to