IVsProjectSpecificEditorMap2.SetSpecificEditorProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置与特定于项目的编辑器以及 "打开方式" 对话框相关的属性。
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
参数
- pszMkDocument
- String
中提供属性以在 "打开方式" 对话框中设置特定于项目的编辑器信息。
- propid
- Int32
中如果等于 VSPSEPROPID_UseGlobalEditorByDefault (false) 则用户已选择在 "打开方式" 对话框中列出的项目特定编辑器信息中打开该文件。 如果 VSPSEPROPID_UseGlobalEditorByDefault (true) ,则选择全局编辑器。 有关详细信息,请参阅 __VSPSEPROPID。
- var
- Object
中包含属性信息的变量。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsProjectS`pecificEditorMap2::SetSpecificEditorProperty(
[in] LPCOLESTR pszMkDocument,
[in] VSPSEPROPID propid,
[in] VARIANT var
);