Udostępnij za pośrednictwem


CompoundActionFactory.GetCompoundAction Method

Creates a CompoundAction object based on a view or specified source.

This API is not CLS-compliant. The CLS-compliant alternative is .

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function GetCompoundAction ( _
    view As IVsTextView, _
    src As Source, _
    description As String _
) As CompoundActionBase
[CLSCompliantAttribute(false)]
public static CompoundActionBase GetCompoundAction(
    IVsTextView view,
    Source src,
    string description
)
[CLSCompliantAttribute(false)]
public:
static CompoundActionBase^ GetCompoundAction(
    IVsTextView^ view, 
    Source^ src, 
    String^ description
)
[<CLSCompliantAttribute(false)>]
static member GetCompoundAction : 
        view:IVsTextView * 
        src:Source * 
        description:string -> CompoundActionBase 
public static function GetCompoundAction(
    view : IVsTextView, 
    src : Source, 
    description : String
) : CompoundActionBase

Parameters

Return Value

Type: Microsoft.VisualStudio.Package.CompoundActionBase
A CompoundAction object.

Remarks

Either view or src is expected to be non-nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

CompoundActionFactory Class

Microsoft.VisualStudio.Package Namespace