IVsProjectSpecificEditorMap2.GetSpecificEditorType Method (String, Guid%)
Specifies which editor should be used to load the specified file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function GetSpecificEditorType ( _
pszMkDocument As String, _
<OutAttribute> ByRef pguidEditorType As Guid _
) As Integer
'Uso
Dim instance As IVsProjectSpecificEditorMap2
Dim pszMkDocument As String
Dim pguidEditorType As Guid
Dim returnValue As Integer
returnValue = instance.GetSpecificEditorType(pszMkDocument, _
pguidEditorType)
int GetSpecificEditorType(
string pszMkDocument,
out Guid pguidEditorType
)
int GetSpecificEditorType(
[InAttribute] String^ pszMkDocument,
[OutAttribute] Guid% pguidEditorType
)
abstract GetSpecificEditorType :
pszMkDocument:string *
pguidEditorType:Guid byref -> int
function GetSpecificEditorType(
pszMkDocument : String,
pguidEditorType : Guid
) : int
Parameters
- pszMkDocument
Type: System.String
[in] String form of the unique moniker identifier of the document in the project system.
- pguidEditorType
Type: System.Guid%
[out, retval] GUID of the editor factory that should be used to instantiate an editor for the file.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsProjectSpecificEditorMap.GetSpecificEditorType(String, Guid%)
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsProjectSpecificEditorMap2::GetSpecificEditorType(
[in] LPCOLESTR pszMkDocument,
[out, retval] GUID *pguidEditorType
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsProjectSpecificEditorMap2 Interface
IVsProjectSpecificEditorMap2 Members