共用方式為


OleMenuCommandService.ParentTarget Property

Gets or sets the parent command target.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Property ParentTarget As IOleCommandTarget
public IOleCommandTarget ParentTarget { get; set; }

Property Value

Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
The parent command target.

.NET Framework Security

See Also

Reference

OleMenuCommandService Class

Microsoft.VisualStudio.Shell Namespace