Share via


VsShellUtilities.SetOleCmdText(IntPtr, String) Method

Definition

Utility function to set the actual text in OLECMDTEXT marshaled structure. Used in typical commad routing code (implementations of Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget)

public:
 static void SetOleCmdText(IntPtr pCmdText, System::String ^ text);
public static void SetOleCmdText (IntPtr pCmdText, string text);
static member SetOleCmdText : nativeint * string -> unit
Public Shared Sub SetOleCmdText (pCmdText As IntPtr, text As String)
Public Sub SetOleCmdText (pCmdText As IntPtr, text As String)

Parameters

pCmdText
IntPtr

nativeint

marshaled OLECMDTEXT structure that needs to be filled in

text
String

Command caption text

Applies to