TnsAdmin
This property specifies the directory location of tnsnames.ora
or sqlnet.ora
, or both.
Declaration
// C# public static string TnsAdmin { get; set; }
Property Type
System.String
Remarks
The backslash (\) is a special character in .NET that represents the beginning of an escape sequence. To specify a directory location, use any one of the following formats in .NET so that backslashes are correctly represented in a directory location:
// C# OracleConnection con = new OracleConnection(); con.TnsAdmin = "D:\\oracle\\client\\admin"; con.TnsAdmin = @"D:\oracle\client\admin"; con.TnsAdmin = "D:/oracle/client/admin";