Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Object Method
Cut
Run
Collapse the table of content
Expand the table of content

Object Method

Visual Studio .NET 2003

Returns an interface or object that can be accessed at run time by name.

[Visual Basic .NET]
Public Function Object( _
   Optional ByVal ModelKind As String = "" _
) As Object
[Visual Basic 6]
Function Object( _
   Optional ByVal ModelKind As String = "" _
) As Object
[C++]
HRESULT __stdcall Object(
   BSTR ModelKind,
   /* [out, retval] */ IDispatch** retVal
);
[C#]
public object Object(
   string ModelKind
);
[JScript .NET]
public function Object(
   ModelKind : String
) : Object

Parameters

ModelKind
Optional. The type of data model.

Remarks

Passing no argument or an empty string is equivalent to passing "TextDocument."

Example

Sub OutputWindowTest()
   ' Create a tool window handle for the Output window.
   Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
   ' Create handles to the Output window and its panes.
   Dim OW As OutputWindow = win.Object
   Dim OWp As OutputWindowPane

   ' Add a new pane to the Output window.
   OWp = OW.OutputWindowPanes.Add("A New Pane")
   ' Add a line of text to the new pane.
   OWp.OutputString("Some Text")
End Sub

See Also

Applies To:Document Object

Show:
© 2015 Microsoft