Queries the marker for the command information.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function GetMarkerCommandInfo ( _
marker As IVsTextMarker, _
item As Integer, _
text As String(), _
commandFlags As UInteger() _
) As Integer
'使用
Dim instance As DocumentTask
Dim marker As IVsTextMarker
Dim item As Integer
Dim text As String()
Dim commandFlags As UInteger()
Dim returnValue As Integer
returnValue = instance.GetMarkerCommandInfo(marker, _
item, text, commandFlags)
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
)
public function GetMarkerCommandInfo(
marker : IVsTextMarker,
item : int,
text : String[],
commandFlags : uint[]
) : int
Parameters
marker
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerThe marker to query.
item
Type: System.Int32The ID of the command to execute. The values should be taken from MarkerCommandValues.
text
Type: []The text of the marker command in the context menu.
commandFlags
Type: [][out] the command flags.
Return Value
Type: System.Int32
When implemented by derived classes, if the method succeeds, it returns S_OK(). If it fails, it returns an error code.
Implements
IVsTextMarkerClient.GetMarkerCommandInfo(IVsTextMarker, Int32, [], [])
Remarks
By default this method returns E_NOTIMPL(). It is an implementation of GetMarkerCommandInfo.
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.