Creates a CompoundAction object based on a view or specified source.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
<CLSCompliantAttribute(False)> _
Public Shared Function GetCompoundAction ( _
view As IVsTextView, _
src As Source, _
description As String _
) As CompoundActionBase
'使用
Dim view As IVsTextView
Dim src As Source
Dim description As String
Dim returnValue As CompoundActionBase
returnValue = CompoundActionFactory.GetCompoundAction(view, _
src, description)
[CLSCompliantAttribute(false)]
public static CompoundActionBase GetCompoundAction(
IVsTextView view,
Source src,
string description
)
[CLSCompliantAttribute(false)]
public:
static CompoundActionBase^ GetCompoundAction(
IVsTextView^ view,
Source^ src,
String^ description
)
public static function GetCompoundAction(
view : IVsTextView,
src : Source,
description : String
) : CompoundActionBase
Parameters
view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextViewA IVsTextView representation of the view.
src
Type: Microsoft.VisualStudio.Package.SourceA Source object representing a source file.
description
Type: System.StringA string value describing the CompoundAction.
Return Value
Type: Microsoft.VisualStudio.Package.CompoundActionBase
A CompoundAction object.
Remarks
Either view or src is expected to be non-a null reference (Nothing in Visual Basic).
Permissions
- 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.