IVsDeployableProjectCfg.Rollback Method
Alerts a deployment project that a deployment operation has failed.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function Rollback ( _
dwReserved As UInteger _
) As Integer
'用途
Dim instance As IVsDeployableProjectCfg
Dim dwReserved As UInteger
Dim returnValue As Integer
returnValue = instance.Rollback(dwReserved)
int Rollback(
uint dwReserved
)
int Rollback(
unsigned int dwReserved
)
abstract Rollback :
dwReserved:uint32 -> int
function Rollback(
dwReserved : uint
) : int
Parameters
- dwReserved
Type: System.UInt32
[in] Reserved and must be set to zero. Call if any deployments failed.
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 IVsDeployableProjectCfg::Rollback(
DWORD dwReserved
);
When this method is called, the deployment project must do whatever is appropriate to rollback changes and restore the state of the project.
.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
IVsDeployableProjectCfg Interface