ScriptEditorControl.IsSqlClrProjectFile Method

Detects whether the opened .sql file is a part of a VB or C# project, in which case the toolbar should be disabled.

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

Syntax

'Declaration
Protected Function IsSqlClrProjectFile ( _
    textView As IVsTextView _
) As Boolean
'Usage
Dim textView As IVsTextView
Dim returnValue As Boolean

returnValue = Me.IsSqlClrProjectFile(textView)
protected bool IsSqlClrProjectFile(
    IVsTextView textView
)
protected:
bool IsSqlClrProjectFile(
    IVsTextView^ textView
)
member IsSqlClrProjectFile : 
        textView:IVsTextView -> bool 
protected function IsSqlClrProjectFile(
    textView : IVsTextView
) : boolean

Parameters

  • textView
    Type: IVsTextView
    A IVsTextView object.

Return Value

Type: System.Boolean
A Boolean value, True if the opened .sql file is a part of a VB or C# project, otehrwise False.