Compartilhar via


IVsProjectSpecificEditorMap2.SetSpecificEditorProperty Method

Definition

Sets properties related to project-specific editors and the Open With dialog box.

public:
 int SetSpecificEditorProperty(System::String ^ pszMkDocument, int propid, System::Object ^ var);
public:
 int SetSpecificEditorProperty(Platform::String ^ pszMkDocument, int propid, Platform::Object ^ var);
int SetSpecificEditorProperty(std::wstring const & pszMkDocument, int propid, winrt::Windows::Foundation::IInspectable const & var);
public int SetSpecificEditorProperty (string pszMkDocument, int propid, object var);
abstract member SetSpecificEditorProperty : string * int * obj -> int
Public Function SetSpecificEditorProperty (pszMkDocument As String, propid As Integer, var As Object) As Integer

Parameters

pszMkDocument
String

[in] Provides properties to set project-specific editor information in the Open With dialog box.

propid
Int32

[in] If equal to VSPSEPROPID_UseGlobalEditorByDefault (false) then the user has chosen to open the file in the project-specific editor information listed in the Open With dialog box. If VSPSEPROPID_UseGlobalEditorByDefault (true), then the global editor was chosen. For more information, see __VSPSEPROPID.

var
Object

[in] VARIANT containing property information.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProjectS`pecificEditorMap2::SetSpecificEditorProperty(  
   [in] LPCOLESTR pszMkDocument,  
   [in] VSPSEPROPID propid,  
   [in] VARIANT var  
);  

Applies to