共用方式為


IOleInPlaceUIWindow.SetActiveObject Method

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'宣告
Sub SetActiveObject ( _
    pActiveObject As IOleInPlaceActiveObject, _
    pszObjName As String _
)
'用途
Dim instance As IOleInPlaceUIWindow
Dim pActiveObject As IOleInPlaceActiveObject
Dim pszObjName As String

instance.SetActiveObject(pActiveObject, _
    pszObjName)
void SetActiveObject(
    IOleInPlaceActiveObject pActiveObject,
    string pszObjName
)
void SetActiveObject(
    [InAttribute] IOleInPlaceActiveObject^ pActiveObject, 
    [InAttribute] String^ pszObjName
)
abstract SetActiveObject : 
        pActiveObject:IOleInPlaceActiveObject * 
        pszObjName:string -> unit 
function SetActiveObject(
    pActiveObject : IOleInPlaceActiveObject, 
    pszObjName : String
)

Parameters

Remarks

For information on the COM interface, see IOleInPlaceUIWindow::SetActiveObject

.NET Framework Security

See Also

Reference

IOleInPlaceUIWindow Interface

IOleInPlaceUIWindow Members

Microsoft.VisualStudio.OLE.Interop Namespace