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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
‘선언
<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
)
Parameters
- view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
A IVsTextView representation of the view.
- src
Type: Microsoft.VisualStudio.Package.Source
A Source object representing a source file.
- description
Type: System.String
A 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-nulla null reference (Nothing in Visual Basic).
.NET Framework Security
- 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.