Compartir a través de


IVsProjectSpecificEditorMap2.SetSpecificEditorProperty Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
Function SetSpecificEditorProperty ( _
    pszMkDocument As String, _
    propid As Integer, _
    var As Object _
) As Integer
'Uso
Dim instance As IVsProjectSpecificEditorMap2
Dim pszMkDocument As String
Dim propid As Integer
Dim var As Object
Dim returnValue As Integer

returnValue = instance.SetSpecificEditorProperty(pszMkDocument, _
    propid, var)
int SetSpecificEditorProperty(
    string pszMkDocument,
    int propid,
    Object var
)
int SetSpecificEditorProperty(
    [InAttribute] String^ pszMkDocument, 
    [InAttribute] int propid, 
    [InAttribute] Object^ var
)
abstract SetSpecificEditorProperty : 
        pszMkDocument:string * 
        propid:int * 
        var:Object -> int 
function SetSpecificEditorProperty(
    pszMkDocument : String, 
    propid : int, 
    var : Object
) : int

Parameters

  • pszMkDocument
    Type: System.String
    [in] Provides properties to set project-specific editor information in the Open With dialog box.
  • var
    Type: System.Object
    [in] VARIANT containing property information.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsProjectSpecificEditorMap2 Interface

IVsProjectSpecificEditorMap2 Members

Microsoft.VisualStudio.Shell.Interop Namespace