RdtManager.TryGetCodeWindow Method
Obtains the IVsCodeWindow for the document full path.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function TryGetCodeWindow ( _
documentFullPath As String, _
<OutAttribute> ByRef codeWindow As IVsCodeWindow _
) As Boolean
'Usage
Dim documentFullPath As String
Dim codeWindow As IVsCodeWindow
Dim returnValue As Boolean
returnValue = RdtManager.TryGetCodeWindow(documentFullPath, _
codeWindow)
public static bool TryGetCodeWindow(
string documentFullPath,
out IVsCodeWindow codeWindow
)
public:
static bool TryGetCodeWindow(
String^ documentFullPath,
[OutAttribute] IVsCodeWindow^% codeWindow
)
public static function TryGetCodeWindow(
documentFullPath : String,
codeWindow : IVsCodeWindow
) : boolean
static member TryGetCodeWindow :
documentFullPath:string *
codeWindow:IVsCodeWindow -> bool
Parameters
- documentFullPath
Type: System.String
The document full path
- codeWindow
Type: Microsoft.VisualStudio.TextManager.Interop.IVsCodeWindow%
The code window
Return Value
Type: System.Boolean
Returns true on success, false otherwise.
.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.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Project Namespace