CompoundActionFactory.GetCompoundAction(IVsTextView, Source, String) 方法

定义

重要

此 API 不符合 CLS。

创建 CompoundAction 基于视图或指定源的对象。Creates a CompoundAction object based on a view or specified source.

public:
 static Microsoft::VisualStudio::Package::CompoundActionBase ^ GetCompoundAction(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, Microsoft::VisualStudio::Package::Source ^ src, System::String ^ description);
[System.CLSCompliant(false)]
public static Microsoft.VisualStudio.Package.CompoundActionBase GetCompoundAction (Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.Package.Source src, string description);
[<System.CLSCompliant(false)>]
static member GetCompoundAction : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.Package.Source * string -> Microsoft.VisualStudio.Package.CompoundActionBase
Public Shared Function GetCompoundAction (view As IVsTextView, src As Source, description As String) As CompoundActionBase

参数

view
IVsTextView

IVsTextView视图的表示形式。A IVsTextView representation of the view.

src
Source

Source表示源文件的对象。A Source object representing a source file.

description
String

描述的字符串值 CompoundActionA string value describing the CompoundAction.

返回

CompoundActionBase

CompoundAction 对象。A CompoundAction object.

属性

注解

viewsrc 应为非 nullEither view or src is expected to be non-null.

适用于