EditorFactory.ShouldOpenDocument Method
Determines whether the specified document is a test and therefore should be opened.
Namespace: Microsoft.VisualStudio.TestTools.Vsip
Assembly: Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
Syntax
声明
Protected Overridable Function ShouldOpenDocument ( _
path As String _
) As Boolean
protected virtual bool ShouldOpenDocument(
string path
)
protected:
virtual bool ShouldOpenDocument(
String^ path
)
abstract ShouldOpenDocument :
path:string -> bool
override ShouldOpenDocument :
path:string -> bool
protected function ShouldOpenDocument(
path : String
) : boolean
Parameters
- path
Type: System.String
The path and file name of a file.
Return Value
Type: System.Boolean
true if the file is a test file; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.