Microsoft.Protocols.TestSuites.MS_MEETS.MS_MEETSAdapter.UpdateMeeting C# (CSharp) Method

UpdateMeeting() public method

Updates content of a meeting in a workspace.
public UpdateMeeting ( string uid, uint sequence, System.DateTime utcDateStamp, string title, string location, System.DateTime utcDateStart, System.DateTime utcDateEnd, bool nonGregorian ) : SoapResult
uid string A unique identifier represents the meeting to update.
sequence uint The updated sequence number of this meeting. Null if not specified.
utcDateStamp System.DateTime The time at which the meeting is being updated. Null if not specified.
title string The updated subject of this meeting.
location string The updated physical or virtual location in which this meeting is to take place.
utcDateStart System.DateTime The updated beginning time of this meeting.
utcDateEnd System.DateTime The updated end time of this meeting.
nonGregorian bool Whether the updated meeting is not in the Gregorian calendar. Null if not specified.
return SoapResult
        public SoapResult<Null> UpdateMeeting(string uid, uint? sequence, DateTime? utcDateStamp, string title, string location, DateTime utcDateStart, DateTime utcDateEnd, bool? nonGregorian)
        {
            SoapException exception = null;
            try
            {
                // Call UpdateMeeting method.
                this.service.UpdateMeeting(
                    uid,
                    sequence ?? 0,
                    sequence.HasValue,
                    utcDateStamp ?? default(DateTime),
                    utcDateStamp.HasValue,
                    title,
                    location,
                    utcDateStart,
                    utcDateEnd,
                    nonGregorian ?? false,
                    nonGregorian.HasValue);

                // As response successfully returned, the transport related requirements can be captured.
                this.CaptureTransportRelatedRequirements();
                this.ValidateAndCaptureCommonMessageSyntax();
                this.VerifyUpdateMeetingResponse();
            }
            catch (SoapException ex)
            {
                exception = ex;

                // As response successfully returned, the transport related requirements can be captured
                this.CaptureTransportRelatedRequirements();

                // Validate soap fault message structure and capture related requirements.
                this.ValidateAndCaptureSoapFaultRequirements(exception);
            }

            return new SoapResult<Null>(Null.Value, exception);
        }