Share via


ScriptFactory.OpenFileMode Property

Gets or sets the current file open mode used to control the behavior in obtaining a current connection for each file opened.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

Syntax

'Declaration
Public Property OpenFileMode As OpenFileModeEnum 
    Get 
    Set
'Usage
Dim instance As ScriptFactory 
Dim value As OpenFileModeEnum 

value = instance.OpenFileMode

instance.OpenFileMode = value
public OpenFileModeEnum OpenFileMode { get; set; }
public:
virtual property OpenFileModeEnum OpenFileMode {
    OpenFileModeEnum get () sealed;
    void set (OpenFileModeEnum value) sealed;
}
abstract OpenFileMode : OpenFileModeEnum with get, set 
override OpenFileMode : OpenFileModeEnum with get, set
final function get OpenFileMode () : OpenFileModeEnum 
final function set OpenFileMode (value : OpenFileModeEnum)

Property Value

Type: OpenFileModeEnum
An open file mode enumeration object.

Remarks

There are several ways to proceed with opening an editor instance on an existing file:

  1. Connected - no prompts, uses all the above information.

  2. Disconnected - no prompts, purposely ignores above information if any.

  3. Prompt - prompts every time.

See Also

Reference

ScriptFactory Class

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace