ModelUtilities.OpenElementInEditor Method
Opens the model element file in the default editor.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Sub OpenElementInEditor ( _
projectNode As IDatabaseProjectNode, _
element As IModelElement, _
<OutAttribute> ByRef fileName As String _
)
'Usage
Dim projectNode As IDatabaseProjectNode
Dim element As IModelElement
Dim fileName As String
ModelUtilities.OpenElementInEditor(projectNode, _
element, fileName)
public static void OpenElementInEditor(
IDatabaseProjectNode projectNode,
IModelElement element,
out string fileName
)
public:
static void OpenElementInEditor(
IDatabaseProjectNode^ projectNode,
IModelElement^ element,
[OutAttribute] String^% fileName
)
public static function OpenElementInEditor(
projectNode : IDatabaseProjectNode,
element : IModelElement,
fileName : String
)
static member OpenElementInEditor :
projectNode:IDatabaseProjectNode *
element:IModelElement *
fileName:string -> unit
Parameters
- projectNode
Type: Microsoft.VisualStudio.Data.Schema.Project.Project.IDatabaseProjectNode
The project that owns the element
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
The element whose file we're to open
- fileName
Type: System.String%
The filename found
.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.Utilities Namespace