DocumentTask.GetMarkerCommandInfo Method
Queries the marker for the command information.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overridable Function GetMarkerCommandInfo ( _
marker As IVsTextMarker, _
item As Integer, _
text As String(), _
commandFlags As UInteger() _
) As Integer
public virtual int GetMarkerCommandInfo(
IVsTextMarker marker,
int item,
string[] text,
uint[] commandFlags
)
public:
virtual int GetMarkerCommandInfo(
IVsTextMarker^ marker,
int item,
array<String^>^ text,
array<unsigned int>^ commandFlags
)
abstract GetMarkerCommandInfo :
marker:IVsTextMarker *
item:int *
text:string[] *
commandFlags:uint32[] -> int
override GetMarkerCommandInfo :
marker:IVsTextMarker *
item:int *
text:string[] *
commandFlags:uint32[] -> int
public function GetMarkerCommandInfo(
marker : IVsTextMarker,
item : int,
text : String[],
commandFlags : uint[]
) : int
Parameters
- marker
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker
The marker to query.
- item
Type: System.Int32
The ID of the command to execute. The values should be taken from MarkerCommandValues.
- text
Type: array<System.String[]
The text of the marker command in the context menu.
- commandFlags
Type: array<System.UInt32[]
[out] the command flags.
Return Value
Type: System.Int32
When this method is implemented by derived classes, if it succeeds, it returns S_OK(). If it fails, it returns an error code.
Implements
IVsTextMarkerClient.GetMarkerCommandInfo(IVsTextMarker, Int32, array<String[], array<UInt32[])
Remarks
By default, this method returns E_NOTIMPL(). It is an implementation of GetMarkerCommandInfo.
.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.