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

CreateWorkspace() public method

Creates a new meeting workspace subsite.
public CreateWorkspace ( string title, string templateName, uint lcid, TimeZoneInf timeZoneInformation ) : SoapResult
title string The title of the new meeting workspace.
templateName string The name of the template to use for the new meeting workspace.
lcid uint The locale ID for the new workspace. Null if not specified.
timeZoneInformation TimeZoneInf The time zone on the system of the meeting organizer.
return SoapResult
        public SoapResult<CreateWorkspaceResponseCreateWorkspaceResult> CreateWorkspace(string title, string templateName, uint? lcid, TimeZoneInf timeZoneInformation)
        {
            CreateWorkspaceResponseCreateWorkspaceResult result = null;
            SoapException exception = null;
            try
            {
                // Call CreateWorkspace method.
                result = this.service.CreateWorkspace(title, templateName, lcid ?? 0, lcid.HasValue, timeZoneInformation);

                // As response successfully returned, the transport related requirements can be captured.
                this.CaptureTransportRelatedRequirements();
                this.ValidateAndCaptureCommonMessageSyntax();
                this.VerifyCreateWorkspaceResponse(result);
            }
            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<CreateWorkspaceResponseCreateWorkspaceResult>(result, exception);
        }