Compartilhar via


IVsSccControlNewSolution.GetDisplayStringForAction(String) Method

Definition

Retrieves the text to be displayed with the "Add to Source Control" check box in the New Projects dialog box.

public:
 int GetDisplayStringForAction([Runtime::InteropServices::Out] System::String ^ % pbstrActionName);
int GetDisplayStringForAction([Runtime::InteropServices::Out] std::wstring const & & pbstrActionName);
public int GetDisplayStringForAction (out string pbstrActionName);
abstract member GetDisplayStringForAction : string -> int
Public Function GetDisplayStringForAction (ByRef pbstrActionName As String) As Integer

Parameters

pbstrActionName
String

[out] Returns the text to be used for the "Add to Source Control" check box.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From ivsscccontrolnewsolution.idl

HRESULT GetDisplayStringForAction(  
   [out] BSTR *pbstrActionName  
);  

If this method returns an empty string, the "Add to Source Control" check box does not appear.

Applies to