Compartir a través de


IVsRegisterProjectTypes.UnregisterProjectType(UInt32) Method

Definition

Unregisters a project type.

public:
 int UnregisterProjectType(System::UInt32 dwCookie);
public:
 int UnregisterProjectType(unsigned int dwCookie);
int UnregisterProjectType(unsigned int dwCookie);
public int UnregisterProjectType (uint dwCookie);
abstract member UnregisterProjectType : uint32 -> int
Public Function UnregisterProjectType (dwCookie As UInteger) As Integer

Parameters

dwCookie
UInt32

[in] Abstract handle returned from the environment when the project type was registered by the call to the RegisterProjectType(Guid, IVsProjectFactory, UInt32) method.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRegisterProjectTypes::UnregisterProjectType(  
   [in] VSCOOKIE dwCookie  
);  

The UnreigsterProjectType method is called in Close method. This indicates that the project factory passed to the environment during the RegisterProjectType is no longer available.

Applies to