Redigera

Dela via


OleDbConnectionStringBuilder.FileName Property

Definition

Gets or sets the name of the Universal Data Link (UDL) file for connecting to the data source.

public:
 property System::String ^ FileName { System::String ^ get(); void set(System::String ^ value); };
public string FileName { get; set; }
member this.FileName : string with get, set
Public Property FileName As String

Property Value

The value of the FileName property, or String.Empty if none has been supplied.

Remarks

If the value passed in is null when you try to set the property, the FileName property is reset. If the value has not been set and the developer tries to retrieve the property, the return value is String.Empty. This property corresponds to the "FileName" key within the connection string.

Setting this property does not cause the OleDbConnectionStringBuilder instance to read the contents of the referenced file, even if the file exists and contains valid connection information. Setting this property has no effect other than to indicate the file to read when connecting to the data source.

Applies to

See also