Ensures that the System.Web.Services.Protocols.SoapMessageStage of the call to the XML Web service method is the stage or stages passed in. If the current processing stage is not one of the stages passed in, an exception is thrown.
- stage
- The System.Web.Services.Protocols.SoapMessageStage asserted.
Multiple stages can be asserted by performing a bitwise OR operation on multiple instances of the System.Web.Services.Protocols.SoapMessageStage class.
SoapMessage.EnsureStage(SoapMessageStage) can be called during any System.Web.Services.Protocols.SoapMessageStage.